Skip to main content

I have below input payload, the expected output should be swapped

 

Input:

[{

"name" : "A",

"id" : 1

},

{

"name" : "B",

"id" : 2

}]

output:

[{

"A" : "name",

1 : "id"

},

{

"B" : "name",

2 : "id"

}]



#DataWeave 2​ #Mule 4​ 

6 个回答
0/9000