Package | Description |
---|---|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
Modifier and Type | Field and Description |
---|---|
protected ObjectMapper.DefaultTyping |
ObjectMapper.DefaultTypeResolverBuilder._appliesFor
Definition of what types is this default typer valid for.
|
Modifier and Type | Method and Description |
---|---|
static ObjectMapper.DefaultTyping |
ObjectMapper.DefaultTyping.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ObjectMapper.DefaultTyping[] |
ObjectMapper.DefaultTyping.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ObjectMapper |
ObjectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping dti)
Convenience method that is equivalent to calling
enableObjectTyping(dti, JsonTypeInfo.As.WRAPPER_ARRAY);
|
ObjectMapper |
ObjectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping applicability,
JsonTypeInfo.As includeAs)
Method for enabling automatic inclusion of type information, needed
for proper deserialization of polymorphic types (unless types
have been annotated with
JsonTypeInfo ). |
ObjectMapper |
ObjectMapper.enableDefaultTypingAsProperty(ObjectMapper.DefaultTyping applicability,
java.lang.String propertyName)
Method for enabling automatic inclusion of type information -- needed
for proper deserialization of polymorphic types (unless types
have been annotated with
JsonTypeInfo ) --
using "As.PROPERTY" inclusion mechanism and specified property name
to use for inclusion (default being "@class" since default type information
always uses class name as type identifier) |
Constructor and Description |
---|
ObjectMapper.DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping t) |