title: Gson custom seralizer for one variable (of many) in an object using TypeAdapter
body: <p>I've seen plenty of simple examples of using a custom TypeAdapter. The most helpful has been <a href="https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/TypeAdapter.html"><code>Class TypeAdapter&lt;T&gt;</code></a>. But that hasn't answered my question yet.</p>
  
  <p>I want to customize the serialization of a single field in the object and let the default Gson mechanism take care of the rest. </p>
  
  <p>For discussion purposes, we can use this class definition as the class of the object I wish to serialize. I want to let Gson serialize the first two class members as well as all exposed members of the base class, and I want to do custom serialization for the 3rd and final class member shown below.</p>
  
  <pre><code>public class MyClass extends SomeClass {
  
  @Expose private HashMap&lt;String, MyObject1&gt; lists;
  @Expose private HashMap&lt;String, MyObject2&gt; sources;
  private LinkedHashMap&lt;String, SomeClass&gt; customSerializeThis;
      [snip]
  }
  </code></pre>