I have json serialized arraylist in java which i want to insert into another json object, how can i do this without having double quotes on my json string?
JSONSerializer serializer = new JSONSerializer();
String serializedList = serializer.serialize(myArrayList);
I want serializedList nested into my json object:
myJsonOutput = Json.createObjectBuilder()
.add("key1", "val1")
.add("key2", "val2")
.add("myArray", serializedList)
.build();
If i do it like this my serializedList will be inserted as a whole string?