Module org.eclipse.yasson
Class NullSerializer.NullWritingEnabled
java.lang.Object
org.eclipse.yasson.internal.serializer.NullSerializer.NullWritingEnabled
- All Implemented Interfaces:
ModelSerializer
- Enclosing class:
- NullSerializer
private static final class NullSerializer.NullWritingEnabled
extends Object
implements ModelSerializer
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
NullWritingEnabled
private NullWritingEnabled()
-
-
Method Details
-
serialize
public void serialize(Object value, jakarta.json.stream.JsonGenerator generator, SerializationContextImpl context) Description copied from interface:ModelSerializer
Serialize provided value or delegate serialization to the next serializer.- Specified by:
serialize
in interfaceModelSerializer
- Parameters:
value
- value to be serializedgenerator
- json generatorcontext
- serialization context
-