public class PrettyJsonSerializer extends JsonSerializer
JsonSerializer
that prints out formatted JSON.
It is slower, but the output is prettier.JsonSerializer.Defaults
classMetadataName, excludedTypeNames, excludedTypes, excludeEmpty, excludeNulls, pathSerializersMap, rules, serializerResolver, strictStringEncoding, typeSerializersMap
Constructor and Description |
---|
PrettyJsonSerializer() |
Modifier and Type | Method and Description |
---|---|
JsonContext |
createJsonContext(java.lang.Appendable appendable)
Creates new JSON context.
|
void |
identChar(char identChar)
Sets ident character.
|
void |
identSize(int ident)
Defines ident size in number of
identChar to be used for single indentation. |
create, createPrettyOne, deep, exclude, exclude, exclude, excludeEmpty, excludeNulls, excludeTypes, excludeTypes, include, include, onValue, serialize, serialize, serializeToCharSequence, setClassMetadataName, strictStringEncoding, withClassMetadata, withSerializer, withSerializer
public void identSize(int ident)
identChar
to be used for single indentation.public void identChar(char identChar)
public JsonContext createJsonContext(java.lang.Appendable appendable)
JsonSerializer
createJsonContext
in class JsonSerializer
Copyright © 2003-present Jodd Team