public class Jsr310NullKeySerializer extends com.fasterxml.jackson.databind.JsonSerializer<Object>
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.Constructor and Description |
---|
Jsr310NullKeySerializer() |
Modifier and Type | Method and Description |
---|---|
void |
serialize(Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
public static final String NULL_KEY
public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<Object>
IOException
Copyright © 2017 FasterXML. All rights reserved.