Suppose I have a json as
{
"data": {
"json": [
{
"value": [
"john","joy"
],
"key": "Names"
},
{
"value": [
"25A",
"26B"
],
"key": "john"
},
{
"value": [
"27A",
"28B"
],
"key": "joy"
}
]
}
}
I want to do create a Dynamic ArrayList names for each values as shown below
for(String name:Names){
//create a dynamic arraylist from the names here like
// ArrayList<String> joy= ..........
}
Can Anyone help me with this please?