I've some json data like this:
[{"id":"someid","name":"some name"}, {"id":"some other id", "name":"a name"}]
I want to get the json objects in the above array aslist of strings like
(each string is json object in string form, (List<String>)
)
(For simplicity
[ {"id":"someid","name":"some name"},{"id":"some other id", "name":"a name"}
I tried using jackson's TypeReference> but it is causing consituents parts like id, someid into the list elements instead of making each json object a string element.
I also tried using jackson TypeReference>, this time I'm getting the number of objects correctly, but all the double quotes are gone and ':' are converted to '=', so it converted to java object not a json raw string.
I'm getting like [{id=someid,name=somename},{id=some other id, name=a name}]
I'm interested to know how to do this using Jackson library.
Any help would be appreciated.