Uses of Interface
io.avaje.jsonb.Jsonb.Builder
Packages that use Jsonb.Builder
Package
Description
Core API of Jsonb.
SPI for the underlying json parsing and generation.
-
Uses of Jsonb.Builder in io.avaje.jsonb
Methods in io.avaje.jsonb that return Jsonb.BuilderModifier and TypeMethodDescriptionJsonb.Builder.adapter
(JsonStreamAdapter streamAdapter) Explicitly set the adapter to use.Jsonb.Builder.add
(JsonAdapter.Factory factory) Add a JsonAdapter.Factory which provides JsonAdapters to use.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.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.failOnUnknown
(boolean failOnUnknown) Set failOnUnknown to true such that an exception is thrown when unknown properties are read in the json content.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.serializeEmpty
(boolean serializeEmpty) Set to serialise empty collections or not.Jsonb.Builder.serializeNulls
(boolean serializeNulls) Set to serialise null values or not.Methods in io.avaje.jsonb with parameters of type Jsonb.BuilderModifier and TypeMethodDescriptionvoid
Jsonb.GeneratedComponent.register
(Jsonb.Builder builder) Register JsonAdapters with the Builder.void
JsonbComponent.register
(Jsonb.Builder builder) Register JsonAdapters with the Builder. -
Uses of Jsonb.Builder in io.avaje.jsonb.spi
Methods in io.avaje.jsonb.spi that return Jsonb.BuilderModifier and TypeMethodDescriptionBootstrap.builder()
Create and return a Builder (with an underling SPI implementation).