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
@senugula This works fine
%dw 1.0
%output application/json
---
entries : flatten payload.entries
Hope this helps