I have a JSON object, generated from a REST service, that looks like this:
{
"name": "mark",
"other_details": "{age:34, gender:male}"
}
In the "other_details" param, the value has to be converted to a JSON object, which ultimately should look like:
{
"name": "mark",
"other_details": "{
"age":"34",
"gender":"male"
}"
}
My POJO looks like:
class Profile{
String name;
String other_details;
//getters and setters
}
I need some help regarding converting the value of the "other_details" param(which is a string) into a JSON. I did try to use Jackson, but it was of no use.
any ideas, how should I proceed !!