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: {}
Thanks for your feedback!
EDIT
Share your suggestions with us!
Click here and then [+ Submit idea]