public class JSON extends Object
| Constructor and Description |
|---|
JSON() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String body,
TypeRef returnType)
Deserialize the given JSON string to Java object.
|
String |
serialize(Object obj)
Serialize the given Java object into JSON string.
|
public String serialize(Object obj) throws ApiException
ApiExceptionpublic <T> T deserialize(String body, TypeRef returnType) throws ApiException
body - The JSON stringreturnType - The type to deserialize inotApiExceptionCopyright © 2016. All Rights Reserved.