public interface JsonMapperService extends Serializable
| Modifier and Type | Method and Description |
|---|---|
<T> T |
mapToObject(Response resp,
Class<T> clazz)
Parse the content of the provided
Response to de-serialize to an object of the given
Class |
String |
objectToJsonString(Object object)
Transforms an object to a JSON string
|
<T> T mapToObject(Response resp, Class<T> clazz) throws ResponseException
Response to de-serialize to an object of the given
Classresp - the response to de-serializeclazz - the target class of the objectResponseException - if provided response is not validCopyright © 2012-2013. All Rights Reserved.