Class AsArrayTypeSerializer


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.
  • Constructor Details

  • Method Details

    • forProperty

      public AsArrayTypeSerializer forProperty(SerializationContext ctxt, 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).

      NOTE: since 3.0 has received context object as first argument.

      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