Class MapEntryAsPOJOSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Map.Entry<?,?>>
com.fasterxml.jackson.databind.ser.std.StdSerializer<Map.Entry<?,?>>
com.fasterxml.jackson.databind.ser.impl.MapEntryAsPOJOSerializer
- All Implemented Interfaces:
JsonFormatVisitable,SchemaAware,Serializable
Serializer used to serialize Map.Entry as POJOs: that is, as if
introspected as POJOs so that there's intermediate "key" and "value"
properties.
TODO: does not fully handle contextualization, type resolution and so on.
- Since:
- 2.19
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None -
Method Summary
Modifier and TypeMethodDescriptionstatic MapEntryAsPOJOSerializercreate(SerializerProvider ctxt, JavaType type) voidserialize(Map.Entry<?, ?> value, JsonGenerator gen, SerializerProvider ctxt) Method that can be called to ask implementation to serialize values of type this serializer handles.Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
acceptJsonFormatVisitor, getSchema, getSchema, handledType, wrapAndThrow, wrapAndThrowMethods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Method Details
-
create
-
serialize
public void serialize(Map.Entry<?, ?> value, JsonGenerator gen, SerializerProvider ctxt) throws IOExceptionDescription copied from class:JsonSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serializein classStdSerializer<Map.Entry<?,?>> - Parameters:
value- Value to serialize; can not be null.gen- Generator used to output resulting Json contentctxt- Provider that can be used to get serializers for serializing Objects value contains, if any.- Throws:
IOException
-