to Json Pretty
Deprecated
Use kt extension for Gson
Replace with
gsonPretty.toJson(obj)
Content copied to clipboard
Serializes an Object to pretty printed JSON
Return
Serialized JSON
Parameters
obj
The object to serialize
Use kt extension for Gson
gsonPretty.toJson(obj)
Serializes an Object to pretty printed JSON
Serialized JSON
The object to serialize