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

tech.kronicle.utils.JsonMapperFactory Maven / Gradle / Ivy

package tech.kronicle.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.json.JsonMapper;

public final class JsonMapperFactory {

    public static JsonMapper createJsonMapper() {
        return (JsonMapper) new JsonMapper()
                .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
                .setSerializationInclusion(JsonInclude.Include.NON_NULL);
    }

    private JsonMapperFactory() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy