Package io.quarkus.jackson.runtime
Interface JacksonBuildTimeConfig
@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED)
@ConfigMapping(prefix="quarkus.jackson")
public interface JacksonBuildTimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf enabled, Jackson will ignore case during Enum deserialization.booleanIf enabled, Jackson will fail when no accessors are found for a type.booleanIf 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.timezone()If set, Jackson will default to using the specified timezone when formatting dates.booleanIf enabled, Jackson will serialize dates as numeric value(s).booleanIf enabled, Jackson will serialize durations as numeric value(s).
-
Method Details
-
failOnUnknownProperties
@WithDefault("false") boolean failOnUnknownProperties()If enabled, Jackson will fail when encountering unknown properties.You can still override it locally with
@JsonIgnoreProperties(ignoreUnknown = false). -
failOnEmptyBeans
@WithDefault("true") boolean failOnEmptyBeans()If enabled, Jackson will fail when no accessors are found for a type. This is enabled by default to match the default Jackson behavior. -
writeDatesAsTimestamps
@WithDefault("false") boolean writeDatesAsTimestamps()If enabled, Jackson will serialize dates as numeric value(s). When disabled, they are serialized in ISO 8601 format. -
writeDurationsAsTimestamps
@WithDefault("true") boolean writeDurationsAsTimestamps()If 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
@WithDefault("false") boolean acceptCaseInsensitiveEnums()If 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". -
serializationInclusion
Optional<com.fasterxml.jackson.annotation.JsonInclude.Include> serializationInclusion()Define 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_CASEorUPPER_CAMEL_CASE.The value can also be a fully qualified class name of a
PropertyNamingStrategysubclass.
-