I am trying to log my hashmap it looks something like this :
How do I convert it into proper json format ?
Just add a transform message at the end of flow with
%dw2.0
application/json
---
payload
You can use the Transform Component and write the dataweave code as follows:
%dw 2.0
output application/json
---
payload pluck(message,property,index) -> {(index) :{(property) :message}}
This should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With