Package org.spincast.plugins.jacksonjson
Class SpincastJsonManagerConfigDefault
java.lang.Object
org.spincast.plugins.jacksonjson.SpincastJsonManagerConfigDefault
- All Implemented Interfaces:
SpincastJsonManagerConfig
Default configuration for the Spincast Json Manager plugin.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The number of space to use as indentation for pretty print.The newline characters to use for pretty print.boolean
Should enums be serialized to :{ "name" : "ENUM_ELEMENT_NAME", "label" : "result of ENUM_ELEMENT_NAME.toString()" }
If false, an enum is serialized to itsname
only.
-
Constructor Details
-
SpincastJsonManagerConfigDefault
public SpincastJsonManagerConfigDefault()
-
-
Method Details
-
getPrettyPrinterIndentationSpaceNumber
public int getPrettyPrinterIndentationSpaceNumber()Description copied from interface:SpincastJsonManagerConfig
The number of space to use as indentation for pretty print. Defaults to 4.- Specified by:
getPrettyPrinterIndentationSpaceNumber
in interfaceSpincastJsonManagerConfig
-
getPrettyPrinterNewlineChars
Description copied from interface:SpincastJsonManagerConfig
The newline characters to use for pretty print. Defaults to "\n".- Specified by:
getPrettyPrinterNewlineChars
in interfaceSpincastJsonManagerConfig
-
isSerializeEnumsToNameAndLabelObjects
public boolean isSerializeEnumsToNameAndLabelObjects()Description copied from interface:SpincastJsonManagerConfig
Should enums be serialized to :{ "name" : "ENUM_ELEMENT_NAME", "label" : "result of ENUM_ELEMENT_NAME.toString()" }
If false, an enum is serialized to itsname
only.- Specified by:
isSerializeEnumsToNameAndLabelObjects
in interfaceSpincastJsonManagerConfig
-