Class NullSerializer

  • All Implemented Interfaces:
    JsonFormatVisitable, SchemaAware, Serializable

    public class NullSerializer
    extends StdSerializer<Object>
    This is a simple dummy serializer that will just output literal JSON null value whenever serialization is requested. Used as the default "null serializer" (which is used for serializing null object references unless overridden), as well as for some more exotic types (java.lang.Void).
    See Also:
    Serialized Form