All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jonnymatts.jzonbie.jackson.JzonbieObjectMapper Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
package com.jonnymatts.jzonbie.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;

import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
import static com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT;

public class JzonbieObjectMapper extends ObjectMapper {

    public JzonbieObjectMapper() {
        super();
        registerModule(new Jdk8Module());
        registerModule(new JavaTimeModule());
        registerModule(new JzonbieModule());
        enable(INDENT_OUTPUT);
        setSerializationInclusion(NON_NULL);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy