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

XMLJSON - data type of boolean

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.15.1
    • None
    • camel-xmljson
    • None
    • Unknown

    Description

      Attempting to convert from XML to JSON using xmljson[1]. Need an approach to specify datatype for Boolean.  For example, converting of [2] will result in [3]. You'll notice that the converted boolean value is treated as String (embedded in quotes) not actual Boolean value. Is there any hint to tell converter to convert as boolean NOT string?

       

      [1] https://camel.apache.org/xmljson.html

      [2] <citizen>false</citizen>

      [3]  "citizen":"false"   should be "citizen":false

      Attachments

        Activity

          People

            Unassigned Unassigned
            kkashi01 hossein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: