Created
November 16, 2016 08:33
-
-
Save fganora/4194fb8289db4a540e8a8072737ffddc to your computer and use it in GitHub Desktop.
Mule: parsing a JSON document to a Java object with the json-to-object-transformer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="testJSONtoObject"> | |
<http:listener config-ref="HTTP_Listener_Configuration" path="/jsontoobj" allowedMethods="POST" doc:name="HTTP"/> | |
<json:json-to-object-transformer returnClass="java.util.HashMap" doc:name="JSON to Object" /> | |
<set-payload value="#[message.payload.countries[2].capital + ', ' + message.payload.continent]" doc:name="Set Payload"/> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment