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(String name)
Indicates whether this JsonGenerator is configured to exclude fields by
the given name.
|
boolean |
isExcludingValues(Object value)
Indicates whether this JsonGenerator is configured to exclude values
of the given object (may be
null ). |
String |
toJson(Object object)
Converts an object to its JSON representation.
|
String toJson(Object object)
object
- to convert to JSONboolean isExcludingFieldsNamed(String name)
name
- of the fieldboolean isExcludingValues(Object value)
null
).value
- an instance of an object