com.fasterxml.jackson.databind.annotation

Annotation Type JsonAppend



  • @Target(value={ANNOTATION_TYPE,TYPE})
     @Retention(value=RUNTIME)
    public @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
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      JsonAppend.Attr[] attrs
      Set of attribute-backed properties to include when serializing a POJO.
      boolean prepend
      Indicator used to determine whether properties defined are to be appended after (false) or prepended before (true) regular properties.
      JsonAppend.Prop[] props
      Set of general virtual properties to include when serializing a POJO.
    • Element Detail

      • attrs

        public abstract JsonAppend.Attr[] attrs
        Set of attribute-backed properties to include when serializing a POJO.
        Default:
        {}
      • props

        public abstract JsonAppend.Prop[] props
        Set of general virtual properties to include when serializing a POJO.
        Default:
        {}
      • prepend

        public abstract boolean prepend
        Indicator 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

Copyright © 2008–2024 FasterXML. All rights reserved.