Module tools.jackson.databind
Annotation Interface JsonAppend
Annotation used to add "virtual" properties that will be written
after regular properties during serialization.
Please note that the "virtual" properties added using this annotation
do not obey any specific order, including the order defined
by JsonPropertyOrder.
- Since:
- 2.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefinition of a single attribute-backed property.static @interfaceDefinition of a single general virtual property. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSet of attribute-backed properties to include when serializing a POJO.booleanIndicator 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
-