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 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
  • Field Details

  • 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: JsonSerializer
      Method that can be called to ask implementation to serialize values of type this serializer handles.
      Specified by:
      serialize in class JsonSerializer<Object>
      Parameters:
      value - Value to serialize; can not be null.
      gen - Generator used to output resulting Json content
      serializers - Provider that can be used to get serializers for serializing Objects value contains, if any.
      Throws:
      IOException