Package | Description |
---|---|
com.google.gson |
This package provides the
Gson class to convert Json to Java and
vice-versa. |
Modifier and Type | Method and Description |
---|---|
JsonReader |
Gson.newJsonReader(Reader reader)
Returns a new JSON writer configured for the settings on this Gson instance.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Gson.fromJson(JsonReader reader,
Type typeOfT)
Reads the next JSON value from
reader and convert it to an object
of type typeOfT . |
JsonElement |
JsonParser.parse(JsonReader json)
Returns the next value from the JSON stream as a parse tree.
|
abstract T |
TypeAdapter.read(JsonReader in)
Reads one JSON value (an array, object, string, number, boolean or null)
and converts it to a Java object.
|
Copyright © 2016. All Rights Reserved.