I am getting from an external source (Database) JSON strings that I need to collect together into a result that is Map (key is the record key and the value is actually a string that includes a Json formatted data). So for example I will get 3 records from DB as follows:
"record1", "{ "type":"recType1", "data": "somedata" }"
"record2", "{ "type":"recType1", "data": "someotherdata" }"
"recrod3", "{ "type":"recType1", "data": "yetanotherdata" }"
I don't want to parse the data of the jsons in the replies (No need). If I add those as "String" then I will get the " escaped (\") which is a problem of course. For example, the record1 value from above will look like this:
"{ \"type\":\"recType1\", \"data\": \"somedata\" }"
How do I create a resulting Json that combines them all? Is there a way to add something "transparently" without it being processed by an internal serializer that escapes the content of the value?