I have a list of objects
{
"list": {
"item": [
{
"id": "12",
"value": "abc"
},
{
"id": "34",
"value": "pqr"
}
]
}
}
and want to convert it to a map
{"12": "abc", "34","pqr"}
What is the easiest way?
I have tried iterating on each object, even Array.map(function), wanna know if there is any easier way