public class GsonMapper extends JsonMapper
| Constructor and Description |
|---|
GsonMapper(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
fromJson(Object json,
Type type) |
byte[] |
toJson(Object value) |
<T> T |
toObject(String json,
Type type) |
String |
toString(Object value) |
isJsonStringpublic <T> T toObject(String json, Type type)
T - return typejson - JSON inputtype - typepublic String toString(Object value)
toString in class JsonMapperpublic <T> T fromJson(Object json, Type type)
fromJson in class JsonMapperpublic byte[] toJson(Object value)
toJson in class JsonMapperCopyright © 2020 Pivotal Software, Inc.. All rights reserved.