camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tosheer <>
Subject Re: unmarshal JSON to Map/List of Strings
Date Thu, 28 Mar 2013 19:18:16 GMT
Hi All,

I have found a very simple solution to this problem.

if we write 
.unmarshal(new JacksonDataFormat(Map.class))

it will get the JSON in the body and try to map this to a Map object. It
will successfully map the Json if immediate children of key value type and
not of the List type. it will throw a data transformation exception if you
provide a wrong data type.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message