Unmarshal

The Unmarshal EIP converts an external format back into an internal format, enabling the application to process the data. For example, it can transform a received JSON into a Java object.

Difference between Marshal and Unmarshal

Marshal and Unmarshal are fundamental processes for data manipulation, enabling interoperability between systems.

  • Marshal: this is the process of transforming data from Camel’s internal format into a standardized external format, such as JSON, XML, CSV, or others. This conversion is essential to integrate the flow with external systems, send messages to APIs, or store information in files in a structured way.

  • Unmarshal: this refers to the reverse process, where data received in an external format (e.g., JSON, XML, CSV) is converted into the internal format used by Camel. This step is necessary for messages to be processed, handled, or routed within Camel’s integration flow.

Example

  • JSON

    • Deserializes the JSON response

      - unmarshal:
          json:
            library: Jackson
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]