Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6048

XML-files containing attributes called "type" does not get converted to json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10.4, 2.11.0
    • None
    • Patch Available
    • Novice

    Description

      An XML-file with an attribute called type will not get converted to JSON, even if the TypeHintsEnum.NO is used. The problem is that the XMLSerializer in json-lib has typeHintsCompatibility=true as default. It should be explicitly set to false along with typeHintsEnabled.

      Attachments

        1. camel-xmljson.diff
          3 kB
          Arne M. Størksen

        Activity

          People

            davsclaus Claus Ibsen
            klodrik Arne M. Størksen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: