Package | Description |
---|---|
javax.json.bind |
Provides JSON Binding API, which enables binding Java objects from and to
JSON documents.
|
Modifier and Type | Method and Description |
---|---|
JsonbConfig |
JsonbConfig.setProperty(String name,
Object value)
Set the particular configuration property to a new value.
|
JsonbConfig |
JsonbConfig.withAdapters(JsonbAdapter... adapters)
Property used to specify custom mapping adapters.
|
JsonbConfig |
JsonbConfig.withBinaryDataStrategy(String binaryDataStrategy)
Property used to specify custom binary data strategy.
|
JsonbConfig |
JsonbConfig.withDateFormat(String dateFormat,
Locale locale)
Property used to specify custom date format.
|
JsonbConfig |
JsonbConfig.withDeserializers(JsonbDeserializer... deserializers)
Property used to specify custom deserializers.
|
JsonbConfig |
JsonbConfig.withEncoding(String encoding)
The binding operations will default to this property
for encoding of JSON data.
|
JsonbConfig |
JsonbConfig.withFormatting(Boolean formatted)
Property used to specify whether or not the serialized JSON data is formatted
with linefeeds and indentation.
|
JsonbConfig |
JsonbConfig.withLocale(Locale locale)
Property used to specify custom locale.
|
JsonbConfig |
JsonbConfig.withNullValues(Boolean serializeNullValues)
Property used to specify whether null values should be serialized to JSON document or skipped.
|
JsonbConfig |
JsonbConfig.withPropertyNamingStrategy(PropertyNamingStrategy propertyNamingStrategy)
Property used to specify custom naming strategy.
|
JsonbConfig |
JsonbConfig.withPropertyNamingStrategy(String propertyNamingStrategy)
Property used to specify custom naming strategy.
|
JsonbConfig |
JsonbConfig.withPropertyOrderStrategy(String propertyOrderStrategy)
Property used to specify property order strategy.
|
JsonbConfig |
JsonbConfig.withPropertyVisibilityStrategy(PropertyVisibilityStrategy propertyVisibilityStrategy)
Property used to specify custom property visibility strategy.
|
JsonbConfig |
JsonbConfig.withSerializers(JsonbSerializer... serializers)
Property used to specify custom serializers.
|
JsonbConfig |
JsonbConfig.withStrictIJSON(Boolean enabled)
Property used to specify whether strict I-JSON serialization compliance should be enforced.
|
Modifier and Type | Method and Description |
---|---|
static Jsonb |
JsonbBuilder.create(JsonbConfig config)
Create a new
Jsonb instance using the default
JsonbBuilder implementation provided as returned from
JsonbProvider.provider() method, configured
with provided configuration. |
JsonbBuilder |
JsonbBuilder.withConfig(JsonbConfig config)
Set configuration which will be set to the newly created
Jsonb instance. |
Copyright © 2019 JBoss by Red Hat. All rights reserved.