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

Allow camel-jackson to unmarshall more type by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.1
    • 2.18.0
    • camel-jackson
    • None
    • Unknown

    Description

      By default camel jackson unmarshaller accept to read only json which are map (eg the json document begin with "

      {" ). If you want to be able to unmarshal more json document like simple string or list you have to specify the unmarshalTypeName which is not very convenient, eg: {noformat}

      <unmarshal>
      <json library="Jackson" unmarshalTypeName="java.lang.Object"/>
      </unmarshal>

      You should be able to unmarshall any type of json document with the default setting, eg:
      

      <unmarshal>
      <json library="Jackson"/>
      </unmarshal>

      
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              apailhes Adrien PAILHES
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: