Jackson Glossary: SerializationConfig
Package: org.codehaus.jackson.map
Jar: jackson-mapper
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().
Related
See JacksonFeaturesSerialization for list of basic on/off features.
Back to Jackson Term Glossary
