camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clakech <>
Subject unmarshal JSON to Map/List of Strings
Date Fri, 26 Oct 2012 09:51:02 GMT

I would like to unmarshal a Json to a Map/List of Strings (eg Map<String,
Map&lt;String, Maps>>...)

Here is my input:
{"code":"adresseMateriau","value":"Material address1"}]}

I would like to be able to do "something" like this after unmarshaling:

== true

For instance, with Gson we can do this kind of decoding:

new Gson().fromJson(json, Map.class);

I know I can do this with a simple bean or processor etc...

I just want to know of I can do this more efficiently with a native JSON
camel component config

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

View raw message