Package io.quarkus.jackson.runtime
Class JacksonBuildTimeConfig
java.lang.Object
io.quarkus.jackson.runtime.JacksonBuildTimeConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
If enabled, Jackson will ignore case during Enum deserialization.boolean
If enabled, Jackson will fail when no accessors are found for a type.boolean
If enabled, Jackson will fail when encountering unknown properties.Defines how names of JSON properties ("external names") are derived from names of POJO methods and fields ("internal names").Optional<com.fasterxml.jackson.annotation.JsonInclude.Include>
Define which properties of Java Beans are to be included in serialization.If set, Jackson will default to using the specified timezone when formatting dates.boolean
If enabled, Jackson will serialize dates as numeric value(s).boolean
If enabled, Jackson will serialize durations as numeric value(s). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
failOnUnknownProperties
@ConfigItem(defaultValue="false") public boolean failOnUnknownPropertiesIf enabled, Jackson will fail when encountering unknown properties.You can still override it locally with
@JsonIgnoreProperties(ignoreUnknown = false)
. -
failOnEmptyBeans
@ConfigItem(defaultValue="true") public boolean failOnEmptyBeansIf enabled, Jackson will fail when no accessors are found for a type. This is enabled by default to match the default Jackson behavior. -
writeDatesAsTimestamps
@ConfigItem(defaultValue="false") public boolean writeDatesAsTimestampsIf enabled, Jackson will serialize dates as numeric value(s). When disabled, they are serialized in ISO 8601 format. -
writeDurationsAsTimestamps
@ConfigItem(defaultValue="true") public boolean writeDurationsAsTimestampsIf enabled, Jackson will serialize durations as numeric value(s). When disabled, they are serialized in ISO 8601 format. This is enabled by default to match the default Jackson behavior. -
acceptCaseInsensitiveEnums
@ConfigItem(defaultValue="false") public boolean acceptCaseInsensitiveEnumsIf enabled, Jackson will ignore case during Enum deserialization. -
timezone
If set, Jackson will default to using the specified timezone when formatting dates. Some examples values are "Asia/Jakarta" and "GMT+3". If not set, Jackson will use its own default. -
serializationInclusion
@ConfigItem public Optional<com.fasterxml.jackson.annotation.JsonInclude.Include> serializationInclusionDefine which properties of Java Beans are to be included in serialization. -
propertyNamingStrategy
Defines how names of JSON properties ("external names") are derived from names of POJO methods and fields ("internal names"). The value can be one of the one of the constants inPropertyNamingStrategies
, so for example,LOWER_CAMEL_CASE
orUPPER_CAMEL_CASE
. The value can also be a fully qualified class name of aPropertyNamingStrategy
subclass.
-
-
Constructor Details
-
JacksonBuildTimeConfig
public JacksonBuildTimeConfig()
-