Class Jsr310NullKeySerializer

  • All Implemented Interfaces:
    JsonFormatVisitable

    @Deprecated
    public class Jsr310NullKeySerializer
    extends JsonSerializer<java.lang.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
    • Constructor Detail

      • Jsr310NullKeySerializer

        public Jsr310NullKeySerializer()
        Deprecated.
    • Method Detail

      • serialize

        public void serialize​(java.lang.Object value,
                              JsonGenerator gen,
                              SerializerProvider serializers)
                       throws java.io.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<java.lang.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:
        java.io.IOException