Skip to main content

I have input like below :

[{

"entries": [{

"firstName": "ruhi"

}]

}, {

"entries": [{

"firstName": "testing"

}]

}]

 

Above needs to be transformed like below

{

"entries": [{

"firstName": "ruhi"

}, {

"firstName": "tesing"

}]

}

11 answers
  1. Mar 6, 2017, 5:25 PM

    @senugula This works fine

     

    %dw 1.0

    %output application/json

    ---

    entries : flatten payload.entries

     

    Hope this helps

0/9000