Class ObjectValueSerializer<T>
java.lang.Object
tools.jackson.databind.ValueSerializer<T>
org.springframework.boot.jackson.ObjectValueSerializer<T>
- Type Parameters:
T- the supported object type
- All Implemented Interfaces:
JsonFormatVisitable
Helper base class for
ValueSerializer implementations that serialize objects.- Since:
- 4.0.0
- Author:
- Phillip Webb
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ValueSerializer
ValueSerializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidserialize(T value, JsonGenerator jgen, SerializationContext context) protected abstract voidserializeObject(T value, JsonGenerator jgen, SerializationContext context) Serialize JSON content into the value type this serializer handles.
-
Constructor Details
-
ObjectValueSerializer
public ObjectValueSerializer()
-
-
Method Details
-
serialize
- Specified by:
serializein classValueSerializer<T>
-
serializeObject
Serialize JSON content into the value type this serializer handles.- Parameters:
value- the source valuejgen- the JSON generatorcontext- the serialization context
-