brianburton / javimmutable-jackson

Add-on datatype-support module for Jackson (https://github.com/FasterXML/jackson) that handles JImmutable collections.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jackson JSON Module for Javimmutable Collections

This library provides an extension to allow the Jackson library to convert Jimmutable collections into JSON and back. To use the module simply create a JImmutableModule and pass it to your ObjectMapper.

        ObjectMapper mapper = new ObjectMapper();
        mapper.registerModules(new JImmutableModule());

Once this has been done Jackson can automatically serialize and deserialize JImmutableLists, JImmutableSets, and JImmutableMaps.

This module requires JImmutable Collections 3.0.0 or higher and Jackson databind version 2.9.10.7 or higher.

    <dependencies>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.9.10.7</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.javimmutable</groupId>
            <artifactId>javimmutable-collections</artifactId>
            <version>3.0.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

About

Add-on datatype-support module for Jackson (https://github.com/FasterXML/jackson) that handles JImmutable collections.

License:Other


Languages

Language:Java 99.6%Language:Shell 0.4%