camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erd <>
Subject Manipulating JSON from inputStream
Date Thu, 23 Apr 2015 17:23:14 GMT

I am  building a camel route and I am looking to manipulate an inputStream
formatted as JSON into a different "hierarchy". 

The endgame is to turn the service's response

     {"bar":{"type": "motor","status":"spinning"}},
     {"baz":{"type": "calculator","status":"crunching"}}
into a series of JSON strings with name and properties a la:
{"name":"bar", properties:{"type": "motor","status":"spinning"}}
{"name":"baz", properties:{"type": "calculator","status":"crunching"}}

What's the best way to approach this?

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

View raw message