|
|
@ -60,6 +60,7 @@ import com.fasterxml.jackson.databind.node.ArrayNode; |
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode; |
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode; |
|
|
|
import com.fasterxml.jackson.databind.node.TextNode; |
|
|
|
import com.fasterxml.jackson.databind.node.TextNode; |
|
|
|
import com.fasterxml.jackson.databind.type.CollectionType; |
|
|
|
import com.fasterxml.jackson.databind.type.CollectionType; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; |
|
|
|
import com.google.common.base.Strings; |
|
|
|
import com.google.common.base.Strings; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -78,6 +79,7 @@ public final class JSONUtils { |
|
|
|
.configure(READ_UNKNOWN_ENUM_VALUES_AS_NULL, true) |
|
|
|
.configure(READ_UNKNOWN_ENUM_VALUES_AS_NULL, true) |
|
|
|
.configure(REQUIRE_SETTERS_FOR_GETTERS, true) |
|
|
|
.configure(REQUIRE_SETTERS_FOR_GETTERS, true) |
|
|
|
.configure(FAIL_ON_EMPTY_BEANS, false) |
|
|
|
.configure(FAIL_ON_EMPTY_BEANS, false) |
|
|
|
|
|
|
|
.addModule(new JavaTimeModule()) |
|
|
|
.addModule(new SimpleModule() |
|
|
|
.addModule(new SimpleModule() |
|
|
|
.addSerializer(LocalDateTime.class, new LocalDateTimeSerializer()) |
|
|
|
.addSerializer(LocalDateTime.class, new LocalDateTimeSerializer()) |
|
|
|
.addDeserializer(LocalDateTime.class, new LocalDateTimeDeserializer())) |
|
|
|
.addDeserializer(LocalDateTime.class, new LocalDateTimeDeserializer())) |
|
|
|