Marshal
The Marshal EIP converts the internal format (objects or structures) into an external format (such as JSON or XML) for communication or storage. For example, it can transform a Java object into a JSON or XML representation.
Examples
-
CSV
-
The message will be converted to
csv
. -
No additional parameters are required.
-
- marshal:
csv: {}
-
JSON
-
The message will be converted to
json
. -
The
Jackson
library will be used to serialize the message body.
-
- marshal:
json:
library: Jackson
-
XML
-
The message will be converted to XML.
-
The
jacksonXml
format uses the Jackson library, but there is also a genericxml
format.
-
- marshal: jacksonXml: {}
- marshal:
xml: {}
See how to add a data format directly through the EIP form on the Diagram tab:
When selecting the JSON format, the Library field is automatically filled with the default value "Jackson". Since it is the default, it is not displayed in the flow script in the Source tab, appearing only if changed to a different value. |
Thanks for your feedback!
EDIT
Share your suggestions with us!
Click here and then [+ Submit idea]