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

com.github.huxinghai1988.json.ObjectMapperFactory Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.github.huxinghai1988.json;


import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

public final class ObjectMapperFactory {

    private static final ObjectMapper mapper = new ObjectMapper();

    static {
        mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
    }

    /**
     * @return a fully-configured ObjectMapper
     */
    public static ObjectMapper get() {
        return mapper;
    }

    private ObjectMapperFactory() {
        // Utility class
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy