public final class ObjectTypeAdapter extends TypeAdapter<Object>
| Modifier and Type | Field and Description |
|---|---|
static TypeAdapterFactory |
FACTORY |
| Modifier and Type | Method and Description |
|---|---|
Object |
read(JsonReader in)
Reads one JSON value (an array, object, string, number, boolean or null) and
converts it to a Java object.
|
void |
write(JsonWriter out,
Object value)
Writes one JSON value (an array, object, string, number, boolean or null) for
value. |
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTreepublic static final TypeAdapterFactory FACTORY
public Object read(JsonReader in) throws IOException
TypeAdapterread in class TypeAdapter<Object>IOExceptionpublic void write(JsonWriter out, Object value) throws IOException
TypeAdaptervalue.write in class TypeAdapter<Object>value - the Java object to write. May be null.IOException