Package jodd.json.impl
Class ValueJsonSerializer<T>
java.lang.Object
jodd.json.impl.ValueJsonSerializer<T>
- All Implemented Interfaces:
TypeJsonSerializer<T>
- Direct Known Subclasses:
ArraysJsonSerializer,EmptyJsonSerializer,IterableJsonSerializer,KeyValueJsonSerializer,ObjectJsonSerializer
Base class for all JSON objects and arrays serializers.
Detects circular dependencies and pushes value to current type
context of provided json context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanserialize(JsonContext jsonContext, T value) Detects circular dependencies and pushes value as current type context.abstract voidserializeValue(JsonContext jsonContext, T value) Performs the serialization of the value.
-
Constructor Details
-
ValueJsonSerializer
public ValueJsonSerializer()
-
-
Method Details
-
serialize
Detects circular dependencies and pushes value as current type context.- Specified by:
serializein interfaceTypeJsonSerializer<T>
-
serializeValue
Performs the serialization of the value.
-