public class Jsr310NullKeySerializer extends 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.JsonSerializer.None| Constructor and Description |
|---|
Jsr310NullKeySerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(Object value,
JsonGenerator gen,
SerializerProvider serializers)
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterIdpublic static final String NULL_KEY
public void serialize(Object value, JsonGenerator gen, SerializerProvider serializers) throws IOException
JsonSerializerserialize in class JsonSerializer<Object>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.IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.