Package org.jclouds.json
Interface Json
-
- All Known Implementing Classes:
GsonWrapper
public interface Json
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
fromJson(InputStream json, Charset charset, Class<T> classOfT)
Deserialize the object from json.<T> T
fromJson(InputStream json, Charset charset, Type type)
Deserialize the generic object from json.<T> T
fromJson(String json, Class<T> classOfT)
Deserialize the object from json.<T> T
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.
-
-
-
Method Detail
-
toJson
String toJson(Object src)
Serialize the object into json. If the object is a generic type, usetoJson(Object, Type)
-
toJson
String toJson(Object src, Type type)
Serialize the generic object into json. If the object is not a generic, usetoJson(Object, Type)
-
fromJson
<T> T fromJson(String json, Type type)
Deserialize the generic object from json. If the object is not a generic type, use#fromJson(Object, Class)
-
fromJson
<T> T fromJson(String json, Class<T> classOfT)
Deserialize the object from json. If the object is a generic type, use#fromJson(Object, Type)
-
fromJson
<T> T fromJson(InputStream json, Charset charset, Type type)
Deserialize the generic object from json. If the object is not a generic type, use#fromJson(Object, Class)
-
fromJson
<T> T fromJson(InputStream json, Charset charset, Class<T> classOfT)
Deserialize the object from json. If the object is a generic type, use#fromJson(Object, Type)
-
-