Class Jsr310NullKeySerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Object>
com.fasterxml.jackson.datatype.jsr310.ser.key.Jsr310NullKeySerializer
- All Implemented Interfaces:
JsonFormatVisitable
Deprecated.
This class is to be used in case
null keys are needed to be serialized in a Map with Java 8 temporal keys. By default the
null key is not supported by jackson, the serializer needs to be registered manually.- Since:
- 2.6
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(Object value, JsonGenerator gen, SerializerProvider serializers) Deprecated.Method that can be called to ask implementation to serialize values of type this serializer handles.Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Field Details
-
NULL_KEY
Deprecated.- See Also:
-
-
Constructor Details
-
Jsr310NullKeySerializer
public Jsr310NullKeySerializer()Deprecated.
-
-
Method Details
-
serialize
public void serialize(Object value, JsonGenerator gen, SerializerProvider serializers) throws IOException Deprecated.Description copied from class:JsonSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serializein classJsonSerializer<Object>- Parameters:
value- Value to serialize; can not be null.gen- Generator used to output resulting Json contentserializers- Provider that can be used to get serializers for serializing Objects value contains, if any.- Throws:
IOException
-