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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.