Jackson Glossary: SerializationConfig

Role

SerializationConfig is the main configuration container used during serialization (writing of JSON).

ObjectMapper contains a modifiable copy of configuration. When a value is serialized (using one of "writeValue()" methods, or indirectly through ObjectWriter), an unmodifiable (and non-shared) instance is constructed to be used during serialization. This is done to ensure no changes occur half-way through serialization, and that there is no need to synchronize read access.

Usage

SerializationConfig is not usually constructed by application code; rather, an instance is constructed by ObjectMapper and exposed through serialization methods. Application code can, however, get access to instance used by ObjectMapper via ObjectMapper.getSerializationConfig().

See JacksonFeaturesSerialization for list of basic on/off features.


Back to Jackson Term Glossary


CategoryJackson

SerializationConfig (last edited 2011-03-09 07:02:48 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC