Jsonb.Builder |
Jsonb.Builder.adapter(JsonStreamAdapter streamAdapter) |
Explicitly set the adapter to use.
|
Jsonb.Builder |
Jsonb.Builder.add(JsonAdapter.Factory factory) |
Add a JsonAdapter.Factory which provides JsonAdapters to use.
|
Jsonb.Builder |
Jsonb.Builder.add(JsonbComponent component) |
Add a Component which can provide multiple JsonAdapters and or configuration.
|
<T> Jsonb.Builder |
Jsonb.Builder.add(Type type,
JsonAdapter<T> jsonAdapter) |
Add a JsonAdapter to use for the given type.
|
Jsonb.Builder |
Jsonb.Builder.add(Type type,
Jsonb.AdapterBuilder builder) |
Add a AdapterBuilder which provides a JsonAdapter to use for the given type.
|
static Jsonb.Builder |
Jsonb.builder() |
Create a new Jsonb.Builder to configure and build the Jsonb instance.
|
Jsonb.Builder |
Jsonb.Builder.failOnUnknown(boolean failOnUnknown) |
Set failOnUnknown to true such that an exception is thrown when unknown
properties are read in the json content.
|
Jsonb.Builder |
Jsonb.Builder.mathTypesAsString(boolean mathTypesAsString) |
Set to true for BigDecimal and BigInteger to serialise as String values rather than number values.
|
static Jsonb.Builder |
Jsonb.newBuilder() |
Deprecated.
|
Jsonb.Builder |
Jsonb.Builder.serializeEmpty(boolean serializeEmpty) |
Set to serialise empty collections or not.
|
Jsonb.Builder |
Jsonb.Builder.serializeNulls(boolean serializeNulls) |
Set to serialise null values or not.
|