1. Home
  2. Integrations
  3. Integrations Guide
  4. Data Formats

Data Formats

See available data formats

Data Formats are features that allow you to transform messages between different formats during the integration flow. They work as message translators, automatically converting data from one format to another.

Imagine you need to integrate two systems: one sends data in JSON and the other only accepts CSV. Data Formats solve this problem by automatically converting during the integration flow.

There are two main operations or EIPs that work with data formats:

  • Unmarshal: Converts data in an external format (such as JSON, XML, or CSV received over the network) to Camel's internal structure, allowing it to be processed and manipulated in the integration flow.

  • Marshal: Converts Camel's internal structure back to an external format (binary or textual), preparing the data to be sent over the network or saved to a file.

Think of Unmarshal as "reading and interpreting" data that arrives in a specific format, and Marshal as "packaging and formatting" data to be sent or stored.

When configuring the Unmarshal/Marshal EIPs, you must select which data format you want to use in the Data Format Type field.

Most used formats

The most commonly used data formats are:

  • JSON: ideal for REST APIs and communication between modern systems. It is lightweight, readable, and widely supported by different programming languages.

  • CSV: used for exporting reports, integrating with spreadsheets, and batch processing of tabular data.

  • Custom: allows you to convert Excel spreadsheets into an array of JSON objects and vice versa.

Available formats

Check out the data formats available in Integrations. Click each data format to see details and examples.

Format
Description
asn1ASN.1 encoding (Abstract Syntax Notation), used in telecommunications and cryptography
avroApache Avro serialization format for big data and streaming
barcodeBarcode generation and reading
base64Base64 encoding/decoding for binary data
cryptoData encryption and decryption
csvComma-separated values files
customCustom formats (Excel)
flatpackStructured text file processing
gzipDeflaterGZIP compression and decompression
jacksonXmlConversion between XML and objects using Jackson
jaxbBinding between XML and Java objects (Java Architecture for XML Binding)
jsonJavaScript Object Notation, lightweight data exchange format
jsonApiJSON API format (jsonapi.org specification)
lzfHigh-speed LZF compression
mimeMultipartMIME multipart messages (emails, uploads)
pgpPGP encryption (Pretty Good Privacy)
protobufGoogle's Protocol Buffers for efficient serialization
soapSOAP messages for web services
syslogSystem log format (RFC 3164 and RFC 5424)
tarFileTAR files (Tape Archive)
univocityCsvHigh-performance CSV parser from Univocity
univocityFixedParser for fixed-width files from Univocity
univocityTsvTSV parser (tab-separated values) from Univocity
xmlSecurityXML signature and encryption
zipDeflaterZIP compression and decompression
zipFileZIP file handling
NOTE

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more