I am working on a camel route for a REST service. My task is to add a POST in which I need to take a token out of the json that is sent. I am doing the following:
.unmarshal().json(JsonLibrary.Jackson, Token.class)
I added the "camel-jackson" dependency to my pom file and it works fine.
Problem: Now all the json coming is has the double quotation marks stripped off. So the following json:
{"name": "John Doe", "job": "farmer"}
Ends up as:
{name:John Doe,job:farmer}
For some of my code I need the double quotes. I have tried to do a bit of configuring my rest route with no luck. Any one have an idea of a fix?