Document 1: Need to covert object to Arrays. I have to iterate on each element of the key and value, how I can convert from an object to Array.
{
"Data":{
"A" :{
"name" : alpha,
"Score" : 199
},
"B" :{
"name" : Beta,
"Score" : 122
}
}
}
Expected Output :
{
"name" :[
alpha,
Beta
],
"score": [
199,
122
]
}