public class JacksonJsonToObjectConverter extends java.lang.Object implements JsonToObjectConverter
JsonNode,
ObjectMapper,
POJONode,
Converter,
JsonToObjectConverter| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
AT_TYPE_FIELD_NAME |
| Constructor and Description |
|---|
JacksonJsonToObjectConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(java.lang.String json)
Converts from
JSON to an Object (POJO) using Jackson's ObjectMapper. |
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Returns a reference to the configured Jackson
ObjectMapper used by this Converter
to convert JSON into an Object (POJO). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertprotected static final java.lang.String AT_TYPE_FIELD_NAME
@NonNull protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapper used by this Converter
to convert JSON into an Object (POJO).ObjectMapper.@Nullable
public java.lang.Object convert(@Nullable
java.lang.String json)
JSON to an Object (POJO) using Jackson's ObjectMapper.convert in interface org.springframework.core.convert.converter.Converter<java.lang.String,java.lang.Object>json - String containing JSON to convert.Object (POJO) converted from the given JSON.getObjectMapper()