Package io.avaje.json
Interface JsonAdapter<T>
public interface JsonAdapter<T>
The core API for serialization to and from json.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(JsonReader reader) Read the type from the reader.default booleanReturn true if this adapter represents a json object or json array of objects that supports json views.default JsonAdapter<T> nullSafe()Return a null safe version of this adapter.voidtoJson(JsonWriter writer, T value) Write the value to the writer.default ViewBuilderAwareReturn the ViewBuilderAware for this adapter.
-
Method Details
-
toJson
Write the value to the writer. -
fromJson
Read the type from the reader. -
nullSafe
Return a null safe version of this adapter. -
isViewBuilderAware
Return true if this adapter represents a json object or json array of objects that supports json views. -
viewBuild
Return the ViewBuilderAware for this adapter.
-