How do I configure Jackson JSON marshal/unmarshal to have global support for
the Joda DateTime type?

Spring Boot now supports this:
https://spring.io/blog/2014/12/02/latest-jackson-integration-improvements-in-spring

If I include this:

https://github.com/FasterXML/jackson-datatype-joda

<dependency>
  <groupId>com.fasterxml.jackson.datatype</groupId>
  <artifactId>jackson-datatype-joda</artifactId>
  <version>2.4.0</version>
</dependency>    

How can I customize the global ObjectMapper used by the marshal/unmarshal
commands?

ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JodaModule());

This might be related: https://issues.apache.org/jira/browse/CAMEL-8176





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Spring-Boot-Joda-DateTime-serialization-support-with-Jackson-JSON-tp5762854.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to