@Generated(value="class io.swagger.codegen.languages.JavaClientCodegen", date="2015-12-03T18:48:57.986-05:00") 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.
|
void |
setDateFormat(DateFormat dateFormat)
Set the date format for JSON (de)serialization with Date properties.
|
public void setDateFormat(DateFormat dateFormat)
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 © 2015. All rights reserved.