public interface JsonGenerator
JsonGenerator.Options
builder can be used to configure an instance of a JsonGenerator.JsonGenerator.Options.build()
Modifier and Type | Interface and Description |
---|---|
static interface |
JsonGenerator.Converter
Handles converting a given type.
|
static class |
JsonGenerator.Options
A builder used to construct a
JsonGenerator instance that allows
control over the serialized JSON output. |
Modifier and Type | Method and Description |
---|---|
boolean |
isExcludingFieldsNamed(java.lang.String name)
Indicates whether this JsonGenerator is configured to exclude fields by
the given name.
|
boolean |
isExcludingValues(java.lang.Object value)
Indicates whether this JsonGenerator is configured to exclude values
of the given object (may be
null ). |
java.lang.String |
toJson(java.lang.Object object)
Converts an object to its JSON representation.
|
java.lang.String toJson(java.lang.Object object)
object
- to convert to JSONboolean isExcludingFieldsNamed(java.lang.String name)
name
- of the fieldboolean isExcludingValues(java.lang.Object value)
null
).value
- an instance of an object