Krishna_Kishore
11 months agoNew Contributor II
multiple array objects
Hi Team,
How can we achieve the following one?
Input:
{
"Language":"BE"
"status":"Ready"
"date":"2024-09-16"
},
{
"Language":"AT"
"status":"Ready"
"date":"2024-09-16"
},
{
"Language":"CA"
"status":"Cancelled"
"date":"2024-09-16"
}
expected output :
{
"entity_update": [{
"id": "abcd123",
"contexts": [{
"BE": [{
"status": "Ready",
"date": "2024-09-16"
}
],
"AT": [{
"status": "Ready",
"date": "2024-09-16"
}
],
"CA": [{
"status": "Cancelled",
"date": "2024-09-16"
}
]
}
]
}
]
}