I am having input as below
{
"ResidentialAddress": {
"type": "RES",
"Building": "String"
},
"Name": "Satheesh",
"Status": "Active",
"OfficeAddress": {
"type": "OFC",
"Building": "String"
},
"TempAddress": {
"type": "TEMP",
"Building": "String"
}
}
I am looking to convert it as below
{Address:[
{
"type": "RES",
"Building": "String"
},
{
"type": "OFC",
"Building": "String"
},{
"type": "TEMP",
"Building": "String"
}
]}
When i tried with address:payload.ResidentialAddress ++ payload.TempAddress it give me combined fields not a list can anyone help?