Package | Description |
---|---|
IO.JSON.Gson.com.google.gson |
This package provides the
com.google.gson.Gson class to convert Json to Java and
vice-versa. |
Modifier and Type | Method and Description |
---|---|
<T> T |
Gson.fromJson(JsonElement json,
java.lang.Class<T> classOfT)
This method deserializes the Json read from the specified parse tree into an object of the
specified type.
|
<T> T |
Gson.fromJson(JsonElement json,
java.lang.reflect.Type typeOfT)
This method deserializes the Json read from the specified parse tree into an object of the
specified type.
|
<T> T |
Gson.fromJson(JsonReader reader,
java.lang.reflect.Type typeOfT)
Reads the next JSON value from
reader and convert it to an object
of type typeOfT . |
<T> T |
Gson.fromJson(java.io.Reader json,
java.lang.Class<T> classOfT)
This method deserializes the Json read from the specified reader into an object of the
specified class.
|
<T> T |
Gson.fromJson(java.io.Reader json,
java.lang.reflect.Type typeOfT)
This method deserializes the Json read from the specified reader into an object of the
specified type.
|
<T> T |
Gson.fromJson(java.lang.String json,
java.lang.Class<T> classOfT)
This method deserializes the specified Json into an object of the specified class.
|
<T> T |
Gson.fromJson(java.lang.String json,
java.lang.reflect.Type typeOfT)
This method deserializes the specified Json into an object of the specified type.
|
JsonElement |
JsonParser.parse(JsonReader json)
Returns the next value from the JSON stream as a parse tree.
|
JsonElement |
JsonParser.parse(java.io.Reader json)
Parses the specified JSON string into a parse tree
|
JsonElement |
JsonParser.parse(java.lang.String json)
Parses the specified JSON string into a parse tree
|