<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/JsonSerializationContext.html#serialize(java.lang.Object)">serialize</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> src)</CODE>
<BR>
Invokes default serialization on the specified 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/JsonSerializationContext.html#serialize(java.lang.Object, java.lang.reflect.Type)">serialize</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> src,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Type.html?is-external=true"title="class or interface in java.lang.reflect">Type</A> typeOfSrc)</CODE>
<BR>
Invokes default serialization on the specified object passing the specific type information.</TD>
<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>serialize</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> src)</PRE>
<DL>
<DD>Invokes default serialization on the specified object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>src</CODE> - the object that needs to be serialized.
<DT><B>Returns:</B><DD>a tree of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>s corresponding to the serialized form of <code>src</code>.</DL>
<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>serialize</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> src,
<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/reflect/Type.html?is-external=true"title="class or interface in java.lang.reflect">Type</A> typeOfSrc)</PRE>
<DL>
<DD>Invokes default serialization on the specified object passing the specific type information.
It should never be invoked on the element received as a parameter of the
so will result in an infinite loop since Gson will in-turn call the custom serializer again.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>src</CODE> - the object that needs to be serialized.<DD><CODE>typeOfSrc</CODE> - the actual genericized type of src object.
<DT><B>Returns:</B><DD>a tree of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>s corresponding to the serialized form of <code>src</code>.</DL>