<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">com.google.gson.JsonElement</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.google.gson.JsonObject</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>JsonObject</B><DT>extends <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></DL>
</PRE>
<P>
A class representing an object type in Json. An object consists of name-value pairs where names
are strings, and values are any other type of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>. This allows for a creating a
tree of JsonElements. The member elements of this object are maintained in order they were added.
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#add(java.lang.String, com.google.gson.JsonElement)">add</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A> value)</CODE>
<BR>
Adds a member, which is a name-value pair, to self.</TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#addProperty(java.lang.String, java.lang.Boolean)">addProperty</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang">Boolean</A> value)</CODE>
<BR>
Convenience method to add a boolean member.</TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#addProperty(java.lang.String, java.lang.Character)">addProperty</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Character.html?is-external=true"title="class or interface in java.lang">Character</A> value)</CODE>
<BR>
Convenience method to add a char member.</TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#addProperty(java.lang.String, java.lang.Number)">addProperty</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Number.html?is-external=true"title="class or interface in java.lang">Number</A> value)</CODE>
<BR>
Convenience method to add a primitive member.</TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#addProperty(java.lang.String, java.lang.String)">addProperty</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> value)</CODE>
<BR>
Convenience method to add a primitive member.</TD>
<CODE> <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</A><<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true"title="class or interface in java.util">Map.Entry</A><<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>>></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#equals(java.lang.Object)">equals</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> o)</CODE>
<CODE> <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#get(java.lang.String)">get</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</CODE>
<BR>
Returns the member with the specified name.</TD>
<CODE> <AHREF="../../../com/google/gson/JsonArray.html"title="class in com.google.gson">JsonArray</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#getAsJsonArray(java.lang.String)">getAsJsonArray</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</CODE>
<BR>
Convenience method to get the specified member as a JsonArray.</TD>
<CODE> <AHREF="../../../com/google/gson/JsonObject.html"title="class in com.google.gson">JsonObject</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#getAsJsonObject(java.lang.String)">getAsJsonObject</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</CODE>
<BR>
Convenience method to get the specified member as a JsonObject.</TD>
<CODE> <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson">JsonPrimitive</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#getAsJsonPrimitive(java.lang.String)">getAsJsonPrimitive</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</CODE>
<BR>
Convenience method to get the specified member as a JsonPrimitive element.</TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#has(java.lang.String)">has</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</CODE>
<BR>
Convenience method to check if a member with the specified name is present in this object.</TD>
<CODE> <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonObject.html#remove(java.lang.String)">remove</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property)</CODE>
<BR>
Removes the <code>property</code> from this <AHREF="../../../com/google/gson/JsonObject.html"title="class in com.google.gson"><CODE>JsonObject</CODE></A>.</TD>
<THALIGN="left"><B>Methods inherited from class com.google.gson.<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></B></TH>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
<TD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
public void <B>add</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A> value)</PRE>
<DL>
<DD>Adds a member, which is a name-value pair, to self. The name must be a String, but the value
can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements
rooted at this node.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>property</CODE> - name of the member.<DD><CODE>value</CODE> - the member object.</DL>
</DD>
</DL>
<HR>
<ANAME="remove(java.lang.String)"><!----></A><H3>
remove</H3>
<PRE>
public <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>remove</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property)</PRE>
<DL>
<DD>Removes the <code>property</code> from this <AHREF="../../../com/google/gson/JsonObject.html"title="class in com.google.gson"><CODE>JsonObject</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>property</CODE> - name of the member that should be removed.
<DT><B>Returns:</B><DD>the <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A> object that is being removed.<DT><B>Since:</B></DT>
public void <B>addProperty</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> value)</PRE>
<DL>
<DD>Convenience method to add a primitive member. The specified value is converted to a
JsonPrimitive of String.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>property</CODE> - name of the member.<DD><CODE>value</CODE> - the string value associated with the member.</DL>
public void <B>addProperty</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Number.html?is-external=true"title="class or interface in java.lang">Number</A> value)</PRE>
<DL>
<DD>Convenience method to add a primitive member. The specified value is converted to a
JsonPrimitive of Number.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>property</CODE> - name of the member.<DD><CODE>value</CODE> - the number value associated with the member.</DL>
public void <B>addProperty</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang">Boolean</A> value)</PRE>
<DL>
<DD>Convenience method to add a boolean member. The specified value is converted to a
JsonPrimitive of Boolean.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>property</CODE> - name of the member.<DD><CODE>value</CODE> - the number value associated with the member.</DL>
public void <B>addProperty</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> property,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Character.html?is-external=true"title="class or interface in java.lang">Character</A> value)</PRE>
<DL>
<DD>Convenience method to add a char member. The specified value is converted to a
JsonPrimitive of Character.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>property</CODE> - name of the member.<DD><CODE>value</CODE> - the number value associated with the member.</DL>
</DD>
</DL>
<HR>
<ANAME="entrySet()"><!----></A><H3>
entrySet</H3>
<PRE>
public <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</A><<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Map.Entry.html?is-external=true"title="class or interface in java.util">Map.Entry</A><<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>>><B>entrySet</B>()</PRE>
<DL>
<DD>Returns a set of members of this object. The set is ordered, and the order is in which the
elements were added.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a set of members of this object.</DL>
</DD>
</DL>
<HR>
<ANAME="has(java.lang.String)"><!----></A><H3>
has</H3>
<PRE>
public boolean <B>has</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</PRE>
<DL>
<DD>Convenience method to check if a member with the specified name is present in this object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>memberName</CODE> - name of the member that is being checked for presence.
<DT><B>Returns:</B><DD>true if there is a member with the specified name, false otherwise.</DL>
</DD>
</DL>
<HR>
<ANAME="get(java.lang.String)"><!----></A><H3>
get</H3>
<PRE>
public <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>get</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</PRE>
<DL>
<DD>Returns the member with the specified name.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>memberName</CODE> - name of the member that is being requested.
<DT><B>Returns:</B><DD>the member matching the name. Null if no such member exists.</DL>
public <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson">JsonPrimitive</A><B>getAsJsonPrimitive</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</PRE>
<DL>
<DD>Convenience method to get the specified member as a JsonPrimitive element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>memberName</CODE> - name of the member being requested.
<DT><B>Returns:</B><DD>the JsonPrimitive corresponding to the specified member.</DL>
public <AHREF="../../../com/google/gson/JsonArray.html"title="class in com.google.gson">JsonArray</A><B>getAsJsonArray</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</PRE>
<DL>
<DD>Convenience method to get the specified member as a JsonArray.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>memberName</CODE> - name of the member being requested.
<DT><B>Returns:</B><DD>the JsonArray corresponding to the specified member.</DL>
public <AHREF="../../../com/google/gson/JsonObject.html"title="class in com.google.gson">JsonObject</A><B>getAsJsonObject</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> memberName)</PRE>
<DL>
<DD>Convenience method to get the specified member as a JsonObject.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>memberName</CODE> - name of the member being requested.
<DT><B>Returns:</B><DD>the JsonObject corresponding to the specified member.</DL>
</DD>
</DL>
<HR>
<ANAME="equals(java.lang.Object)"><!----></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> o)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A></CODE> in class <CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="hashCode()"><!----></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></DL>