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