-
Notifications
You must be signed in to change notification settings - Fork 55
Jackson annotations support
aeromac edited this page Feb 26, 2024
·
13 revisions
Here is the list of Jackson annotations currently supported :
- @JsonAutoDetect
- @JsonIgnore
- @JsonIgnoreProperties
- @JsonIgnoreType
- @JsonPropertyOrder
- @JsonProperty
- @JsonManagedReference and @JsonBackReference
- @JsonTypeInfo, @JsonSubTypes and @JsonTypeName : JsonTypeInfo.As.EXTERNAL_PROPERTY and JsonTypeInfo.Id.CUSTOM are not supported
- @JsonCreator
- @JsonIdentityInfo and @JsonIdentityReference
- @JsonFormat : only supported on date and only shape, pattern and timezone (offset/Z only) properties
- @JsonValue
- @JsonAnyGetter and @JsonAnySetter
- @JsonUnwrapped : only supported on serialization
- @JsonInclude
Some annotations of Jackson databind are also supported. To use them, add the dependency to your classpath since it is not included by default.
- JsonDeserialize : as, keyAs and contentAs are supported on properties (not class or constructor parameter)