I am getting Json object from backend like below format.
{
"Day-Workers": {
"0": {
"Peter": {
"id": "EJ6609",
"Sal": "$1000"
}
},
"1": {
"Sat": {
"id": "Ej6610",
"Sal": "$1200"
}
}
}}
But I want to convert this object to array of objects format like below.
{
"Day-Workers": [{
"Peter": {
"id": "EJ6609",
"Sal": "$1000"
}
},
{
"sat": {
"id": "Ej6610",
"Sal": "$1200"
}
}
]}
Is there way to implement to convert this format, Thanks.