Class MapEntryAsPOJOSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<java.util.Map.Entry<?,?>>
-
- com.fasterxml.jackson.databind.ser.impl.MapEntryAsPOJOSerializer
-
- All Implemented Interfaces:
JsonFormatVisitable,SchemaAware,java.io.Serializable
public class MapEntryAsPOJOSerializer extends StdSerializer<java.util.Map.Entry<?,?>>
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MapEntryAsPOJOSerializercreate(SerializerProvider ctxt, JavaType type)voidserialize(java.util.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, wrapAndThrow
-
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
-
-
-
Method Detail
-
create
public static MapEntryAsPOJOSerializer create(SerializerProvider ctxt, JavaType type)
-
serialize
public void serialize(java.util.Map.Entry<?,?> value, JsonGenerator gen, SerializerProvider ctxt) throws java.io.IOExceptionDescription copied from class:JsonSerializerMethod that can be called to ask implementation to serialize values of type this serializer handles.- Specified by:
serializein classStdSerializer<java.util.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:
java.io.IOException
-
-