title: GSON deserializing key-value to custom object
body: <p>I need to deserialize json which is an array of date/long values. Here is an example of the returned JSON:</p>
  
  <pre><code>[{"2011-04-30T00:00:00-07:00":100}, {"2011-04-29T00:00:00-07:00":200}]
  </code></pre>
  
  <p>Using GSON I am able to deserialize this to a <code>List&lt;Map&lt;Date,String&gt;&gt;</code>, but would like to be able to convert it to a <code>List&lt;MyCustomClass&gt;</code> similar to:</p>
  
  <pre><code>public class MyCustomClass() { 
      Date date;
      Long value;
  }
  </code></pre>
  
  <p>I cannot seem to find a way to instruct GSON to map the key/value of the JSON map to the date/value fields in my custom class.  Is there a way to do this, or is a list of maps the only route?</p>