I have a JSON of the format
[{
"id" : "a01",
"name" : "random1",
"val" : "random2"
},
{
"id" : "a03",
"name" : "random3",
"val" : "random4"
}]
I need to map it to a List
holding various Map
objects. How do I achieve it?
Even if I am able to convert this JSON to a List
of String
of the form
{
"id" : "a01",
"name" : "random1",
"val" : "random2"
}
then I have a method to convert each individual String
to a Map
.