public static class JsonSerializer.Defaults
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
classMetadataName
Specifies if 'class' metadata is used and its value.
|
static boolean |
deepSerialization
Defines default behavior of a
JsonSerializer . |
static java.lang.String |
DEFAULT_CLASS_METADATA_NAME |
static java.lang.String[] |
excludedTypeNames
List of excluded types names for serialization.
|
static java.lang.Class[] |
excludedTypes
List of excluded types for serialization.
|
static boolean |
strictStringEncoding
Sets the strict JSON encoding.
|
Constructor and Description |
---|
Defaults() |
public static final java.lang.String DEFAULT_CLASS_METADATA_NAME
public static boolean deepSerialization
JsonSerializer
.
If set to true
, objects will be serialized
deep, so all collections and arrays will get serialized.public static java.lang.Class[] excludedTypes
public static java.lang.String[] excludedTypeNames
*
and ?
).public static boolean strictStringEncoding
false
.public static java.lang.String classMetadataName
JsonSerializer
and all objects
will have additional field with the class type in the resulting JSON.
JsonParser
will also consider this flag to build
correct object type. If null
, class information is not used.Copyright © 2003-present Jodd Team