cancel
Showing results for 
Search instead for 
Did you mean: 

multiple array objects

Krishna_Kishore
New Contributor II

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"
                        }
                    ]
                }
            ]
        }
]
}

 

1 ACCEPTED SOLUTION

SpiroTaleski
Valued Contributor

@Krishna_Kishore 

Please find the attached sample pipeline: 

 

View solution in original post

2 REPLIES 2

SpiroTaleski
Valued Contributor

@Krishna_Kishore 

Please find the attached sample pipeline: 

 

Krishna_Kishore
New Contributor II

Hi @SpiroTaleski , Thanks a lot, it is working