You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Patrick696 <pw...@utilidata.com> on 2016/05/23 14:38:09 UTC
Help w/ rest response JSON binding with Jackson
Hi,
I am having a heck of a time figuring out how to return raw json from my
camel rest routes.
If I do something like:
.marshal(format)
.convertBodyTo(String.class)
I always get something like:
"{\"status\":200,\"error\":success,\"data\":...}"
If I don't add .convertBodyTo(String.class), I get the binary inputstream
from my response POJO.
I just want plain old JSON as a response.
Any ideas what I am missing here?
Thanks,
Patrick
--
View this message in context: http://camel.465427.n5.nabble.com/Help-w-rest-response-JSON-binding-with-Jackson-tp5782958.html
Sent from the Camel - Users mailing list archive at Nabble.com.