Class AsArrayTypeSerializer

  • Direct Known Subclasses:
    AsPropertyTypeSerializer

    public class AsArrayTypeSerializer
    extends TypeSerializerBase
    Type serializer that will embed type information in an array, as the first element, and actual value as the second element.
    • Method Detail

      • forProperty

        public AsArrayTypeSerializer forProperty​(BeanProperty prop)
        Description copied from class: TypeSerializer
        Method called to create contextual version, to be used for values of given property. This may be the type itself (as is the case for bean properties), or values contained (for Collection or Map valued properties).
        Specified by:
        forProperty in class TypeSerializer
      • getTypeInclusion

        public com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
        Description copied from class: TypeSerializer
        Accessor for type information inclusion method that serializer uses; indicates how type information is embedded in resulting JSON.
        Specified by:
        getTypeInclusion in class TypeSerializerBase