Adrien PAILHES created CAMEL-10029:
--------------------------------------

             Summary: Allow camel-jackson to unmarshall more type by default
                 Key: CAMEL-10029
                 URL: https://issues.apache.org/jira/browse/CAMEL-10029
             Project: Camel
          Issue Type: Improvement
          Components: camel-jackson
    Affects Versions: 2.17.1
            Reporter: Adrien PAILHES


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 umarshal 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>
{noformat}
You should be able to unmarshall any type of json document with the default 
setting, eg:
{noformat}
<unmarshal>
    <json library="Jackson"/>
</unmarshal>
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to