Try something like this: <camel:route> <camel:from uri="timer://hello.world.request.timer?fixedRate=true&period=10000" /> <camel:to uri="log:hello.world.request?level=INFO?showAll=true" /> <camel:bean ref="helloWorld" /> <camel:marshal ref ="jack"/> <camel:convertBodyTo type="java.lang.String" /> <camel:log message="${body}"/> <camel:to uri="log:hello.world.response?level=INFO?showAll=true" /> </camel:route>
On Fri, Oct 11, 2013 at 3:22 PM, erj2code <p...@tetraconcepts.com> wrote: > Would I use convertBodyTo described on > http://camel.apache.org/convertbodyto.html to convert the body to String? > > I'm still a newbie with Camel; could you show me an example? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-do-I-convert-the-map-returned-to-Camel-into-JSON-tp5741370p5741375.html > Sent from the Camel - Users mailing list archive at Nabble.com.