Skip to content
FORKED to support jackson 2.6.*: Jackson extension to add support for the generated constructors of Project Lombok objects
Java Shell
Branch: master
Clone or download
Pull request Compare This branch is 9 commits ahead, 4 commits behind xebia:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src
.gitignore
LICENSE
README.md
deploy.sh
perform-release.sh
pom.xml
prep-release.sh
rollback-release.sh

README.md

Jackson Lombok

Forked from https://github.com/xebia/jackson-lombok

Supports Jackson 2.6.*

This repository contains extension for Jackson which allows better interoperability with Lombok classes.

The JacksonLombokAnnotationIntrospector allows Jackson to serialize and deserialize classes with constructors that are annotated with the java.beans.ConstructorProperties annotations. Lombok will automatically add this annotation to the constructors it generates.

Usage

Add the JacksonLombokAnnotationIntrospector to the Jackson ObjectMapper in the following manner.

new ObjectMapper()
    .setAnnotationIntrospector(new JacksonLombokAnnotationIntrospector());

Now you can serialize and deserialize Lombok objects with generated constructors like the following class.

@Value
private static class ImmutablePojo {
    @JsonProperty("new_name")
    String name;
    @JsonProperty
    String string;
}

##Installation Add the following maven depency

<dependency>
    <groupId>io.paradoxical</groupId>
    <artifactId>jackson-lombok</artifactId>
    <version>1.1</version>
</dependency>

##Licence All files are provided under an MIT license.

You can’t perform that action at this time.