from Json
Deserializes a JSON string into the specified class
Return
Deserialized JSON
Parameters
json
The JSON string to deserialize
clazz
The class to deserialize the JSON into
Deserializes a JSON string into the specified class
Return
Deserialized JSON
Parameters
reader
The reader from which JSON will be deserialized
clazz
The class to deserialize the JSON into
Deserializes a JSON string into the specified object
Return
Deserialized JSON
Parameters
json
The JSON string to deserialize
type
The type of the object to deserialize the JSON into
Deprecated
Use kt extension for Gson
Replace with
gson.fromJson(json, clazz)
Content copied to clipboard
Deprecated
Use kt extension for Gson
Replace with
gson.fromJson(reader, clazz)
Content copied to clipboard
Deprecated
Use kt extension for Gson
Replace with
gson.fromJson(json, type)
Content copied to clipboard