title: Gson error when parsing empty arrays
body: <p>I'm parsing JSON using GSON, but get an error when I try to parse JSON containing an empty array.</p>
  
  <p>This is the JSON:</p>
  
  <pre><code>{"Selected":[{"RelatedProducts":[],"ProductReview":null,"ProductId":94}]}
  </code></pre>
  
  <p>and the error produced:</p>
  
  <pre><code>com.google.gson.JsonParseException: Expecting object found: []
  </code></pre>
  
  <p>Editing the JSON (a local copy) so that the RelatedProducts array is <code>null</code> instead of <code>[]</code> prevents the error, but I can't change the JSON being sent from the server.</p>
  
  <p>Is there any way to get GSON to ignore empty arrays (or treat them as null)?</p>