|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JsonElement | |
---|---|
com.google.gson | This package provides the Gson class to convert Json to Java and
vice-versa. |
Uses of JsonElement in com.google.gson |
---|
Subclasses of JsonElement in com.google.gson | |
---|---|
class |
JsonArray
A class representing an array type in Json. |
class |
JsonNull
A class representing a Json null value. |
class |
JsonObject
A class representing an object type in Json. |
class |
JsonPrimitive
A class representing a Json primitive value. |
Methods in com.google.gson that return JsonElement | |
---|---|
JsonElement |
JsonArray.get(int i)
Returns the ith element of the array. |
JsonElement |
JsonObject.get(String memberName)
Returns the member with the specified name. |
JsonElement |
JsonStreamParser.next()
Returns the next available JsonElement on the reader. |
JsonElement |
JsonParser.parse(JsonReader json)
Returns the next value from the JSON stream as a parse tree. |
JsonElement |
JsonParser.parse(Reader json)
Parses the specified JSON string into a parse tree |
JsonElement |
JsonParser.parse(String json)
Parses the specified JSON string into a parse tree |
JsonElement |
JsonObject.remove(String property)
Removes the property from this JsonObject . |
JsonElement |
LongSerializationPolicy.serialize(Long value)
Serialize this value using this serialization policy. |
JsonElement |
JsonSerializationContext.serialize(Object src)
Invokes default serialization on the specified object. |
JsonElement |
JsonSerializationContext.serialize(Object src,
Type typeOfSrc)
Invokes default serialization on the specified object passing the specific type information. |
JsonElement |
JsonSerializer.serialize(T src,
Type typeOfSrc,
JsonSerializationContext context)
Gson invokes this call-back method during serialization when it encounters a field of the specified type. |
JsonElement |
Gson.toJsonTree(Object src)
This method serializes the specified object into its equivalent representation as a tree of JsonElement s. |
JsonElement |
Gson.toJsonTree(Object src,
Type typeOfSrc)
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElement s. |
Methods in com.google.gson that return types with arguments of type JsonElement | |
---|---|
Set<Map.Entry<String,JsonElement>> |
JsonObject.entrySet()
Returns a set of members of this object. |
Iterator<JsonElement> |
JsonArray.iterator()
Returns an iterator to navigate the elemetns of the array. |
Methods in com.google.gson with parameters of type JsonElement | ||
---|---|---|
void |
JsonArray.add(JsonElement element)
Adds the specified element to self. |
|
void |
JsonObject.add(String property,
JsonElement value)
Adds a member, which is a name-value pair, to self. |
|
|
JsonDeserializationContext.deserialize(JsonElement json,
Type typeOfT)
Invokes default deserialization on the specified object. |
|
T |
JsonDeserializer.deserialize(JsonElement json,
Type typeOfT,
JsonDeserializationContext context)
Gson invokes this call-back method during deserialization when it encounters a field of the specified type. |
|
|
Gson.fromJson(JsonElement json,
Class<T> classOfT)
This method deserializes the Json read from the specified parse tree into an object of the specified type. |
|
|
Gson.fromJson(JsonElement json,
Type typeOfT)
This method deserializes the Json read from the specified parse tree into an object of the specified type. |
|
String |
Gson.toJson(JsonElement jsonElement)
Converts a tree of JsonElement s into its equivalent JSON representation. |
|
void |
Gson.toJson(JsonElement jsonElement,
Appendable writer)
Writes out the equivalent JSON for a tree of JsonElement s. |
|
void |
Gson.toJson(JsonElement jsonElement,
JsonWriter writer)
Writes the JSON for jsonElement to writer . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |