I need the String property of object to be serialized as nested JSON without any escaping etc. So given json:
{
"regularProperty" : "Test here",
"nestedJSON" : {
"propertyArray" : [1,2,3],
"propertyText" : "new Text",
"anotherObject" : { ... }
}
}
And the nestedJSON property must contain the text
{
"propertyArray" : [1,2,3],
"propertyText" : "new Text",
"anotherObject" : { ... }
}
How is it possible for both serialization/deserialization? Any specific annnotation or data type?