public class JSONSerializationConfig extends SerializationConfig<JSONSerializationConfig>
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONSerializationConfig.JSC
The Class JSC.
|
| Constructor and Description |
|---|
JSONSerializationConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isBracketRootValue()
The default value is true if it's not set.
|
boolean |
isQuoteMapKey()
The default value is false if it's not set.
|
boolean |
isQuotePropName()
The default value is false if it's not set.
|
boolean |
isWrapRootValue()
Checks if is wrap root value.
|
JSONSerializationConfig |
setBracketRootValue(boolean bracketRootValue)
It's set to if enclose the JSON string/text with '{' and '}' or '[' and
']'.
|
JSONSerializationConfig |
setQuoteMapKey(boolean quoteMapKey)
Sets the quote map key.
|
JSONSerializationConfig |
setQuotePropName(boolean quotePropName)
Sets the quote prop name.
|
JSONSerializationConfig |
setWrapRootValue(boolean wrapRootValue)
Sets the wrap root value.
|
String |
toString() |
getCharQuotation, getDateTimeFormat, getExclusion, getIndentation, getPropNamingPolicy, getStringQuotation, isPrettyFormat, isSkipTransientField, setCharQuotation, setDateTimeFormat, setExclusion, setIndentation, setPrettyFormat, setPropNamingPolicy, setSkipTransientField, setStringQuotation, supportCircularReference, supportCircularReference, writeBigDecimalAsPlain, writeBigDecimalAsPlaincopy, getIgnoredPropNames, getIgnoredPropNames, setIgnoredPropNames, setIgnoredPropNames, setIgnoredPropNamespublic boolean isQuotePropName()
public JSONSerializationConfig setQuotePropName(boolean quotePropName)
quotePropName - public boolean isQuoteMapKey()
public JSONSerializationConfig setQuoteMapKey(boolean quoteMapKey)
quoteMapKey - public boolean isWrapRootValue()
public JSONSerializationConfig setWrapRootValue(boolean wrapRootValue)
wrapRootValue - public boolean isBracketRootValue()
public JSONSerializationConfig setBracketRootValue(boolean bracketRootValue)
bracketRootValue - public int hashCode()
hashCode in class SerializationConfig<JSONSerializationConfig>public boolean equals(Object obj)
equals in class SerializationConfig<JSONSerializationConfig>obj - public String toString()
toString in class SerializationConfig<JSONSerializationConfig>Copyright © 2021. All rights reserved.