Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
    <dataFormats>
      <json id="json" library="Jackson" useList="true" unmarshalTypeName="com.foo.MyPojo"/>
    </dataFormats>

Using custom Jackson ObjectMapper

Available as of Camel 2.17

You can use custom Jackson ObjectMapper instance, can be configured as shown below.

Code Block
    <dataFormats>
      <json id="json" library="Jackson" objectMapper="myMapper"/>
    </dataFormats>

Where myMapper is the id of the custom instance that Camel will lookup in the Registry

Using custom Jackson modules

Available as of Camel 2.15

...