title: Is it possible to allow Gson to just skip fields with wrong types?
body: <p>I have a class from an SDK that I don't have access to change, but that I would like to serialize a JSON-valid string into.</p>
  
  <p>However, an external API sometimes puts in the wrong type for a Date field.</p>
  
  <p><strong>Long story short: Can I just ignore errors in GSON, or tell Gson to ignore errors on fields, and just get the partial object?</strong></p>
  
  <p>For example, the field should be a double, but I get a Date(number) instead. But I'm not using it anyway, so I don't care, and I don't need the whole process to fail. I just want the parcable fields out, with the faulty fields left null.</p>
  
  <p>NOTE: Writing a deserializer that creates the object I want to have created by Gson defeats the very purpose I propose. </p>
  
  <p>This i a line of code that fails, because a single field is wrong:</p>
  
  <pre><code>Customer customer = gson.fromJson(settings.getCustomerObjectJSONString(), Customer.class);
  </code></pre>
  
  <p>I would like for it to just skip the field that it cannot parse, because I don't have access to the Customer class, as it is from a generated SDK/library.</p>