I am fetching data from database and trying to assigning using dataweave. However, I see if there are multiple values fetch for a query then it is combining all the values of column into single array.
Currently with the my dataweave logic it is return me this output
Current Output:
"orders": [
{
"orderID": "[10355, 10383, 10453]",
"employeeID": "[6, 8, 1]"
}
]
Expected Output:
"orders": [
{
"orderID": "103553",
"employeeID": "6"
},
{
"orderID": "10383",
"employeeID": "8"
},
{
"orderID": "10453",
"employeeID": "1"
}
]
Thanks in advance