public interface JacksonConfiguration
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
configure(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Configures given Jackson
ObjectMapper in the following way:
Registers PropertyBox type serializers and deserializers using the PropertyBoxModule
Adds the JavaTimeModule to support the jdk8 java.time.* API data types
Sets the SerializationFeature.WRITE_DATES_AS_TIMESTAMPS to false
|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper()
Create and configure a new Jackson
ObjectMapper. |
static com.fasterxml.jackson.databind.ObjectMapper mapper()
ObjectMapper. The returned ObjectMapper is configured in the
following way:
PropertyBox type serializers and deserializers are registered, using the
PropertyBoxModuleJavaTimeModule is registered to support the jdk8 java.time.* API data typesSerializationFeature.WRITE_DATES_AS_TIMESTAMPS is setted to falseISO8601DateModule is registered to serialize the java.util.Date types using the ISO-8601
format.ObjectMapperstatic com.fasterxml.jackson.databind.ObjectMapper configure(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper in the following way:
PropertyBox type serializers and deserializers using the PropertyBoxModuleJavaTimeModule to support the jdk8 java.time.* API data typesSerializationFeature.WRITE_DATES_AS_TIMESTAMPS to falseobjectMapper - ObjectMapper to configure (not null)Copyright © 2019 The Holon Platform. All rights reserved.