com.fasterxml.jackson.databind.ser.std

Class NullSerializer

  • All Implemented Interfaces:
    JsonFormatVisitable, SchemaAware


    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).

Copyright © 2014-2015 FasterXML. All Rights Reserved.