Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.26 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.26 KB

Jackson module (jar) to support JSON serialization and deserialization of Guava data types.

Status

Build Status

Module has been production-ready since version 2.3. Not all datatypes of Guava are support due to sheer size of the library; new support is added based on contributions.

License

Apache License 2.0

Usage

Maven dependency

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

<dependency>
  <groupId>com.fasterxml.jackson.datatype</groupId>
  <artifactId>jackson-datatype-guava</artifactId>
  <version>2.4.0</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 GuavaModule());

after which functionality is available for all normal Jackson operations.

More

See Wiki for more information (javadocs, downloads).