- All Known Implementing Classes:
KeyWriter
,NullSerializer
,ObjectTypeSerializer
public interface ModelSerializer
Type serializer.
All the instances are required to be reusable and without any states stored in the class fields.
All the instances are required to be reusable and without any states stored in the class fields.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(Object value, jakarta.json.stream.JsonGenerator generator, SerializationContextImpl context) Serialize provided value or delegate serialization to the next serializer.
-
Method Details
-
serialize
void serialize(Object value, jakarta.json.stream.JsonGenerator generator, SerializationContextImpl context) Serialize provided value or delegate serialization to the next serializer.- Parameters:
value
- value to be serializedgenerator
- json generatorcontext
- serialization context
-