I have a json string and my requirement is to covert into map, where key will be field of the json. below is my json
{
"A":[
{
"B":[
{
"C":[
{
"D1":"V1",
"D2":"X1",
"D3":Y1,
"D4":"Z1"
},
{
"D1":"V2",
"D2":"X2",
"D3":Y2,
"D4":"Z2"
}
]
}
]
}
]
}
Key should look like "A->B->C->D1" and corresponding value V1,V2.
Map signature should look like Map<String,List<String>>
. Similar kind of question posted here but my problem is to create key out of json field.Let me know if more information is required. Thanks in advance.