public.javadoc.org.spincast.plugins.jacksonjson.SpincastJsonManagerConfig.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastJsonManagerConfig (org.spincast:spincast-framework 1.14.0 API)
org.spincast.plugins.jacksonjson
Interface SpincastJsonManagerConfig
-
- All Known Implementing Classes:
- SpincastJsonManagerConfigDefault
public interface SpincastJsonManagerConfig
Configurations for the Spincast Json Manager plugin.
We use "@ImplementedBy" to specify the default configurations
to use if none is specified in a Guice module.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
int
getPrettyPrinterIndentationSpaceNumber()
The number of space to use as indentation for pretty print.
String
getPrettyPrinterNewlineChars()
The newline characters to use for pretty print.
boolean
isSerializeEnumsToNameAndLabelObjects()
Should enums be serialized to :
{
"name" : "ENUM_ELEMENT_NAME",
"label" : "result of ENUM_ELEMENT_NAME.toString()"
}
If false, an enum is serialized to its name
only.
-
-
Method Detail
-
getPrettyPrinterIndentationSpaceNumber
int getPrettyPrinterIndentationSpaceNumber()
The number of space to use as indentation for pretty print.
Defaults to 4.
-
getPrettyPrinterNewlineChars
String getPrettyPrinterNewlineChars()
The newline characters to use for pretty print.
Defaults to "\n".
-
isSerializeEnumsToNameAndLabelObjects
boolean isSerializeEnumsToNameAndLabelObjects()
Should enums be serialized to :
{
"name" : "ENUM_ELEMENT_NAME",
"label" : "result of ENUM_ELEMENT_NAME.toString()"
}
If false, an enum is serialized to its name
only.
Copyright © 2019. All rights reserved.