camel-users mailing list archives

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

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

{"foo":
     {"bar":{"type": "motor","status":"spinning"}},
     {"baz":{"type": "calculator","status":"crunching"}}
}
into a series of JSON strings with name and properties a la:
{"foo":
{"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: http://camel.465427.n5.nabble.com/Manipulating-JSON-from-inputStream-tp5766240.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message