Mule 4 Dataweave 2.0 code to convert a String to JSON output

Mule 4 Dataweave 2.0 code to convert a String to JSON output




Dataweave code to convert a string to JSON Output in Mule 4 with Dataweave 2.0. To know more about read function in DW refer here.

DW Script:
%dw 2.0
output application/json
---
read(payload,"application/json")

Also read: How is Default Error Handling in Mule 4 works?

Post a Comment

0 Comments