TOON
Marshal JSON-compatible Java values to TOON (Token-Oriented Object Notation) and unmarshal TOON back to Java objects.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-toon-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 5 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.dataformat.toon.content-type-header | Whether the data format should set the Content-Type header to text/toon when marshalling. | true | Boolean |
camel.dataformat.toon.delimiter | Delimiter used for tabular array rows and inline primitive arrays. | COMMA | String |
camel.dataformat.toon.enabled | Whether to enable auto configuration of the toon data format. This is enabled by default. | Boolean | |
camel.dataformat.toon.indent | Number of spaces per indentation level. | 2 | Integer |
camel.dataformat.toon.strict | Whether to enable strict validation when unmarshalling TOON. When false, the decoder applies the non-strict recoveries of the TOON specification, such as accepting an array whose length differs from the declared length; other malformed TOON still fails. | true | Boolean |