Below example contains same key "row". There may be thousands of such objects. I need an optimal solution in converting below object:
{
"row":{
"name": "abc"
},
"row":{
"school": "pqr"
}
}
Required output:
{
"rows":
[
{
"name": "abc"
},
{
"school": "pqr"
}
]
}