Interface JsonSerializer
-
- All Implemented Interfaces:
public interface JsonSerializer<T>
An interface to a custom serializer of objects of the specified type T into Json.
-
-
Method Summary
Modifier and Type Method Description abstract void
serialize(T item, @NotNull() JsonWriter jsonWriter)
Method called when an object of type T should be serialized. -
-
Method Detail
-
serialize
abstract void serialize(T item, @NotNull() JsonWriter jsonWriter)
Method called when an object of type T should be serialized.
- Parameters:
item
- The object to serialize.jsonWriter
- An interface to a writer of Json which should be used to translate fields in item of type T to Json.
-
-
-
-