Hi

I looks like the data is splitted into a java.util.map structure and a
toString on that outputs it like this. You can marshal the map to json
format using jackson or some json library like that, to get the output
in json format.

On Thu, Sep 10, 2015 at 12:21 PM, Vesco <[email protected]> wrote:
> Hey guys.
>
> I have a rout that calls a rest service. It returns a json response that I
> would like to split and send to a second route.
>
> Camel 2.15.2
>
> <to uri="direct:getContent" />
> <split>
>     <jsonpath>$.content</jsonpath>
>     <log message="Splited: ${body}" />
>     <to uri="direct:toFlow"/>
> </split>
>
> The response form getContent:
> {
>   "content" : [ {
>     "action" : "CU",
>     "modifiedTime" : "2015-07-28T11:40:09.520+02:00",
>     ...
>     }
>   }, {
>     "action" : "CU",
>     "modifiedTime" : "2015-07-28T11:40:09.520+02:00",
>     ...
>     }
>   } ]
> }
>
> After the split:
> {action=CU, modifiedTime=2015-07-28T11:40:09.520+02:00, ...}
>
>
> All quotes have been removed and by next rout fails. Is there a way to keep
> the quotes them?
>
> Cheers
> Vesco.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/JsonPath-stripes-quotes-during-split-tp5771398.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Reply via email to