Insert aDataWeavetransformer to convert the JSON object into a Java hashmap so that we can extract individual values from the payload. Rename the component to “Convert JSON to Object” and configure it as shown below. You can also optionally set the metadata for the source and target to...
Next, drag aTransformconnector into the flow. This transform message is going to take each entry from the database and convert it into a JSON format. To complete this data transformation, simply replace the DataWeave script with the one provided in the below screenshot. Next, a...
8. And, finally, stick a transformer that converts the API request body to Java map. You can either use DataWeave or a Byte Array to Object transformer and specify target class java.util.Map. I prefer to use DataWeave: %dw 1.0 %output application/java --- payload And that, l...