Class Jsr310NullKeySerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<Object>
-
- com.fasterxml.jackson.datatype.jsr310.ser.key.Jsr310NullKeySerializer
-
- All Implemented Interfaces:
JsonFormatVisitable
@Deprecated public class Jsr310NullKeySerializer extends JsonSerializer<Object>
Deprecated.This class is to be used in casenull
keys are needed to be serialized in aMap
with Java 8 temporal keys. By default thenull
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
-
-
Constructor Summary
Constructors Constructor Description Jsr310NullKeySerializer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
serialize(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
-
-
-
-
Field Detail
-
NULL_KEY
public static final String NULL_KEY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
public void serialize(Object value, JsonGenerator gen, SerializerProvider serializers) throws IOException
Deprecated.Description copied from class:JsonSerializer
Method that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serialize
in 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
-
-