blob: f7370144067daceb684daeadcd202bc2f9642a92 [file] [log] [blame]
// spring-boot-auto-configure options: START
:page-partial:
:doctitle: Camel Spring Boot Starter for johnzon
== Spring Boot Auto-Configuration
When using johnzon with Spring Boot make sure to use the following Maven dependency to have support for auto configuration:
[source,xml]
----
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-johnzon-starter</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
----
The component supports 4 options, which are listed below.
[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
| *camel.dataformat.json-johnzon.enabled* | Whether to enable auto configuration of the json-johnzon data format. This is enabled by default. | | Boolean
| *camel.dataformat.json-johnzon.object-mapper* | Lookup and use the existing Mapper with the given id. | | String
| *camel.dataformat.json-johnzon.pretty-print* | To enable pretty printing output nicely formatted. Is by default false. | false | Boolean
| *camel.dataformat.json-johnzon.unmarshal-type* | Class name of the java type to use when unmarshalling | | String
|===
// spring-boot-auto-configure options: END