Annotation Interface JsonAppend
Annotation that may be used to add "virtual" properties to be written
after regular properties (although ordering may be changed using
both standard
@JsonPropertyOrder
annotation, and
properties of this annotation).- Since:
- 2.5
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Definition of a single attribute-backed property.static @interface
Definition of a single general virtual property. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionSet of attribute-backed properties to include when serializing a POJO.boolean
Indicator used to determine whether properties defined are to be appended after (false) or prepended before (true) regular properties.Set of general virtual properties to include when serializing a POJO.
-
Element Details
-
attrs
JsonAppend.Attr[] attrsSet of attribute-backed properties to include when serializing a POJO.- Default:
- {}
-
props
JsonAppend.Prop[] propsSet of general virtual properties to include when serializing a POJO.- Default:
- {}
-
prepend
boolean prependIndicator used to determine whether properties defined are to be appended after (false) or prepended before (true) regular properties. Affects all kinds of properties defined using this annotation.- Default:
- false
-