| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use JsonElement | |
|---|---|
| com.google.gson | This package provides the Gsonclass to convert Json to Java and
 vice-versa. | 
| Uses of JsonElement in com.google.gson | 
|---|
| Subclasses of JsonElement in com.google.gson | |
|---|---|
|  class | JsonArrayA class representing an array type in Json. | 
|  class | JsonNullA class representing a Json nullvalue. | 
|  class | JsonObjectA class representing an object type in Json. | 
|  class | JsonPrimitiveA 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 JsonElementon 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 propertyfrom thisJsonObject. | 
| abstract  JsonElement | LongSerializationPolicy.serialize(Long value)Serialize this valueusing 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 JsonElements. | 
|  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 JsonElements. | 
|  JsonElement | TypeAdapter.toJsonTree(T value)Converts valueto a JSON tree. | 
| 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. | |
|  T | TypeAdapter.fromJsonTree(JsonElement jsonTree)Converts jsonTreeto a Java object. | |
|  String | Gson.toJson(JsonElement jsonElement)Converts a tree of JsonElements into its equivalent JSON representation. | |
|  void | Gson.toJson(JsonElement jsonElement,
       Appendable writer)Writes out the equivalent JSON for a tree of JsonElements. | |
|  void | Gson.toJson(JsonElement jsonElement,
       JsonWriter writer)Writes the JSON for jsonElementtowriter. | |
| 
 | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||