Skip to content

Zahary/jackson-datatype-joda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project to build Jackson (http://jackson.codehaus.org) module (jar) to support JSON serialization and deserialization of Joda (http://joda-time.sourceforge.net/) data types.

Status

Build Status

As of version 2.0 module is usable and relatively extensive (more so than in-built support 1.9 had). Contributions are welcome!

Usage

Maven dependency

To use module on Maven-based projects, use following dependency:

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

(or whatever version is most up-to-date at the moment)

Registering module

Like all standard Jackson modules (libraries that implement Module interface), registration is done as follows:

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

after which functionality is available for all normal Jackson operations: you can read JSON as Joda types, as well as write Joda values as JSON.

More

See Wiki for more information (javadocs, downloads).

About

Extension module to properly support full datatype set of Joda datetime library

Resources

Stars

Watchers

Forks

Packages

No packages published