Package org.codehaus.jackson.map
package 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.
Tree mapper builds dynamically typed tree of JsonNode
s
from Json content (and writes such trees as Json),
similar to how DOM model works with xml.
Main benefits over Object mapping are:
- No null checks are needed (dummy nodes are created as necessary to represent "missing" Object fields and Array elements)
- No type casts are usually needed: all public access methods are defined in basic JsonNode class, and when "incompatible" method (such as Array element access on, say, Boolean node) is used, returned node is virtual "missing" node.
-
ClassDescriptionDefines interface for resolvers that can resolve abstract types into concrete ones; either by using static mappings, or possibly by materializing implementations dynamically.Abstract class that defines API used for introspecting annotation-based configuration for serialization and deserialization.Helper class that allows using 2 introspectors such that one introspector acts as the primary one to use; and second one as a fallback used if the primary does not provide conclusive or useful result for a method.Value type used with managed and back references; contains type and logic name, used to link related referencesBasic container for information gathered by
ClassIntrospector
to help in constructing serializers and deserializers.Bean properties are logical entities that represent data Java objects ("beans", although more accurately POJOs) contain; and that are accessed using some combination of methods (getter, setter), field and constructor parameter.Simple value classes that contain definitions of properties, used during introspection of properties to use for serialization and deserialization purposes.ClassIntrospector<T extends BeanDescription>Helper class used to introspect features of POJO value classes used with Jackson.Interface used for decoupling details of how mix-in annotation definitions are accessed (via this interface), and how they are stored (defined by classes that implement the interface)Add-on interface thatJsonDeserializer
s can implement to get a callback that can be used to create contextual instances of deserializer to use for handling properties of supported type.Add-on interface thatKeyDeserializer
s can implement to get a callback that can be used to create contextual instances of key deserializer to use for handling Map keys of supported type.Add-on interface thatJsonSerializer
s can implement to get a callback that can be used to create contextual instances of serializer to use for handling properties of supported type.Object that contains baseline configuration for deserialization process.Enumeration that defines togglable features that guide the serialization feature.Context for deserialization process.This is the class that can be registered (viaDeserializationConfig
object owner byObjectMapper
) to get calledn when a potentially recoverable problem is encountered during deserialization process.Abstract class that defines API used byDeserializerProvider
to obtain actualJsonDeserializer
instances from multiple distinct factories.Configuration settings container class for bean deserializer factoryAbstract class that defines API used byObjectMapper
andJsonDeserializer
s to obtain deserializers capable of re-constructing instances of handled type from JSON content.Interface that defines API for simple extensions that can provide additional deserializers for various types.BasicDeserializers
implementation that implements all methods but provides no deserializers.Deprecated.Helper class used for handling details of creating handler instances (things likeJsonSerializer
s,JsonDeserializer
s, various type handlers) of specific types.Abstract class that defines API for objects that provide value to "inject" during deserialization.Simple standard implementation which uses a simple Map to store values to inject, identified by simple String keys.Abstract class that defines API used byObjectMapper
(and other chainedJsonDeserializer
s too) to deserialize Objects of arbitrary types from JSON, using providedJsonParser
.This marker class is only to be used with annotations, to indicate that no deserializer is configured.Checked exception used to signal fatal problems with mapping of content.Simple bean class used to contain references.Deprecated.Interface that is to replaceJsonSerializable
to allow for dynamic type information embedding.Abstract class that defines API used byObjectMapper
(and other chainedJsonSerializer
s too) to serialize Objects of arbitrary types into JSON, using providedJsonGenerator
.This marker class is only to be used with annotations, to indicate that no serializer is configured.Abstract class that defines API used for deserializing JSON content field names into Java Map keys.This marker class is only to be used with annotations, to indicate that no deserializer is configured.Interface that defines API for simple extensions that can provide additional deserializers for deserializer Map keys of various types, from JSON property names.MapperConfig<T extends MapperConfig<T>>Interface that defines functionality accessible through both serialization and deserialization configuration objects; accessors to mode-independent configuration settings and such.Immutable container class used to store simple configuration settings.Interface that actual Feature enumerations used byMapperConfig
implementations must implement.Iterator exposed byObjectMapper
when binding sequence of objects.Sub-class ofJsonFactory
that will create a properObjectCodec
to allow seamless conversions between Json content and Java objects (POJOs).Simple interface for extensions that can be registered withObjectMapper
to provide a well-defined set of extensions to default functionality; such as support for new data types.Interface Jackson exposes to modules for purpose of registering extended functionality.This mapper (or, data binder, or codec) provides functionality for converting between Java objects (instances of JDK provided core classes, beans), and matching JSON constructs.CustomizedTypeResolverBuilder
that provides type resolver builders used with so-called "default typing" (seeObjectMapper.enableDefaultTyping()
for details).Enumeration used withObjectMapper.enableDefaultTyping()
to specify what kind of types (classes) default typing should be used for.Builder object that can be used for per-serialization configuration of deserialization parameters, such as root type to use or object to update (instead of constructing new instance).Builder object that can be used for per-serialization configuration of serialization parameters, such as JSON View and root type to use.Class that defines how names of JSON properties ("external names") are derived from names of POJO methods and fields ("internal names"), in cases where they are not auto-detected and no explicit annotations exist for naming.APropertyNamingStrategy
that translates typical camel case Java property names to lower case JSON element names, separated by underscores.Interface used to indicate deserializers that want to do post-processing after construction and being added toDeserializerProvider
, but before being used.Interface used to indicate serializers that want to do post-processing after construction and being added toSerializerProvider
, but before being used.Wrapper used when interface does not allow throwing a checkedJsonMappingException
Object that contains baseline configuration for serialization process.Enumeration that defines togglable features that guide the serialization feature.Abstract class that defines API used bySerializerProvider
to obtain actualJsonSerializer
instances from multiple distinct factories.Configuration settings container class for bean serializer factory.Abstract class that defines API used byObjectMapper
andJsonSerializer
s to obtain serializers capable of serializing instances of specific types.Interface that defines API for simple extensions that can provide additional serializers for various types.BasicSerializers
implementation that implements all methods but provides no serializers.Deprecated.As of 1.9, useSerializers.Base
insteadInterface for deserializing type information from JSON content, to type-safely deserialize data into correct polymorphic instance (when type inclusion has been enabled for type handled).Interface for serializing type information regarding instances of specified base type (super class), so that exact subtype can be properly deserialized later on.
Deserializers.Base
instead