package org.todo.util;

import tools.jackson.databind.MapperFeature;
import tools.jackson.databind.ObjectMapper;
import tools.jackson.databind.cfg.DateTimeFeature;
import tools.jackson.databind.json.JsonMapper;

public class ObjectMapperFactory {

	private static final ObjectMapper objectMapper = JsonMapper.builder()
			.disable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY)
			.disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS)
			.enable(tools.jackson.databind.SerializationFeature.INDENT_OUTPUT)
			.build();

	public static ObjectMapper getObjectMapper() {
		return objectMapper;
	}
}
