Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
By default camel json 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:
<unmarshal> <json library="Gson" unmarshalTypeName="java.lang.Object"/> </unmarshal>
You should be able to unmarshall any type of json document with the default setting, eg:
<unmarshal> <json library="Gson"/> </unmarshal>