Skip to content

Set of support modules for Java 8 datatypes (Optionals, date/time) and features (parameter names)

License

Notifications You must be signed in to change notification settings

kevinjom/jackson-modules-java8

 
 

Repository files navigation

Overview

This is a multi-module umbrella project for Jackson modules needed to support Java 8 features when core Jackson modules do not (yet) require Java 8 runtime.

This includes:

License

All modules are licensed under Apache License 2.0.

Status

Build Status

Usage

Maven dependencies

<dependency>
    <groupId>com.fasterxml.jackson.module</groupId>
    <artifactId>jackson-module-parameter-names</artifactId>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.datatype</groupId>
    <artifactId>jackson-datatype-jdk8</artifactId>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.datatype</groupId>
    <artifactId>jackson-datatype-jsr310</artifactId>
    <version>2.8.6</version>
</dependency>

Registering modules

ObjectMapper mapper = new ObjectMapper()
   .registerModule(new ParameterNamesModule())
   .registerModule(new Jdk8Module())
   .registerModule(new JavaTimeModule())
;

or, alternatively, you can also auto-discover these modules with:

ObjectMapper mapper = new ObjectMapper();
mapper.findAndRegisterModules();

Either way, after registration all functionality is available for all normal Jackson operations.

More

See Wiki for more information (javadocs).

About

Set of support modules for Java 8 datatypes (Optionals, date/time) and features (parameter names)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%