Skip to content

A library to help with serialization and deserialization using com.fasterxml.jackson.

License

Notifications You must be signed in to change notification settings

UnterrainerInformatik/java-serialization

Repository files navigation

GitHub forks GitHub stars GitHub repo size GitHub issues

license Travis-build Maven Central Twitter Follow

serialization

A library to help with serialization and deserialization using com.fasterxml.jackson.

This is a single point of configuration for our projects.

Contains a pre-configured JSON-mapper and a builder for it.

Properties

Allows DateTime-type serialization and deserialization using ISO8601.

Ignores unknown properties when deserializing.

Ignores null-values when serializing.

Contains fix for Project Lomboks fluent- and chained accessors.

Usage

JsonMapper mapper = JsonMapper.create();

// JSON to string.

ChildJson j = ChildJson.builder()
    .id(2L)
    .createdOn(localDateTime)
    .editedOn(localDateTime)
    .string("test")
    .build();
String result = mapper.toStringFrom(j);

// String to JSON.

String input = "{\"string\":\"gluppy\",\"blah\":\"platy\"}";
SimpleJson json = mapper.fromStringTo(SimpleJson.class, input);

About

A library to help with serialization and deserialization using com.fasterxml.jackson.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages