I am trying to convert the output of a database into json using transform message component.
This is the input payload
[{
"usd ": 0.0,
"goal": 3041920,
"Inr": 0.0,
}]
Data weave exp inside transformer
%dw 1.0
%output application/json
---
payload map ((payload01 , indexOfPayload01) -> {
"usd ": payload01.usd ,
"goal": payload01.goal,
"Inr": payload01.Inr,
}
I have done the mapping in transform message and whenever testing the flow i am getting exception
com.mulesoft.weave.mule.exception.WeaveExecutionException
Can someone Help
Thanks, Nikhil