This is a multi-module umbrella project for various Jackson Datatype modules to support 3rd party Collection libraries.

Currently included are:


All modules are licensed under Apache License 2.0.

Build Status

Build Status


Maven dependencies

To use these format backends Maven-based projects, use following dependency:


where COLLECTION would be one of guava, hppc, pcollections, or eclipse-collections.

NOTE! Parent pom itself only specifies defaults to individual modules but DOES NOT include them, so you CAN NOT just add dependency to jackson-datatypes-collections. Individual datatype modules need to be included explicitly (or via some other pom that depends on them).

Registration with ObjectMapper

Like all standard Jackson modules (libraries that implement Module interface), registration for Collections datatypes is done as follows (with 2.x up to 2.9 the only method)

ObjectMapper mapper = new ObjectMapper()
    .registerModule(new GuavaModule())
    .registerModule(new HppcModule())
    .registerModule(new PCollectionsModule())
    .registerModule(new EclipseCollectionsModule())

OR, with 2.10.0 and later (the only method in upcoming 3.x):

ObjectMapper mapper = JsonMapper.builder()
    .registerModule(new GuavaModule())
    .registerModule(new HppcModule())
    .registerModule(new PCollectionsModule())
    .registerModule(new EclipseCollectionsModule())

after which datatype read/write support is available for all normal Jackson operations, including support for nested types.

Usage with Spring Boot

public Jackson2ObjectMapperBuilderCustomizer customize()
    return builder -> builder.modules( new GuavaModule() );