public interface JsonGenerator
Generates JSON from objects. The Options builder can be used to configure an instance of a JsonGenerator.
Modifiers | Name | Description |
---|---|---|
interface |
JsonGenerator.Converter |
Handles converting a given type. |
class |
JsonGenerator.Options |
A builder used to construct a JsonGenerator instance that allows control over the serialized JSON output. |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
isExcludingFieldsNamed(String name) Indicates whether this JsonGenerator is configured to exclude fields by the given name. |
|
public boolean |
isExcludingValues(Object value) Indicates whether this JsonGenerator is configured to exclude values of the given object (may be null ). |
|
public String |
toJson(Object object) Converts an object to its JSON representation. |
Indicates whether this JsonGenerator is configured to exclude fields by the given name.
name
- of the field Indicates whether this JsonGenerator is configured to exclude values
of the given object (may be null
).
value
- an instance of an object