|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jclouds.json.internal.GsonWrapper
@Singleton public class GsonWrapper
Constructor Summary | |
---|---|
GsonWrapper(com.google.gson.Gson gson)
|
Method Summary | ||
---|---|---|
|
fromJson(String json,
Class<T> classOfT)
Deserialize the object from json. |
|
|
fromJson(String json,
Type type)
Deserialize the generic object from json. |
|
String |
toJson(Object src)
Serialize the object into json. |
|
String |
toJson(Object src,
Type type)
Serialize the generic object into json. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public GsonWrapper(com.google.gson.Gson gson)
Method Detail |
---|
public <T> T fromJson(String json, Type type)
Json
#fromJson(Object, Class)
fromJson
in interface Json
public <T> T fromJson(String json, Class<T> classOfT)
Json
#fromJson(Object, Type)
fromJson
in interface Json
public String toJson(Object src)
Json
Json.toJson(Object, Type)
toJson
in interface Json
public String toJson(Object src, Type type)
Json
Json.toJson(Object, Type)
toJson
in interface Json
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |