title: Deserializing a json object using gson only on certain fields
body: <p>If I have a class say </p>
  
  <pre><code>class A
  {
  String field1
  String field2
  String field3
  } 
  </code></pre>
  
  <p>And I have another class B that contains the following</p>
  
  <pre><code>{
  String field1
  String field2
  } 
  </code></pre>
  
  <p>There is a byte array of key value pairs, [#maps to field1, #maps to field2] How can I using gson map the byte array to the fields in class A without creating a class B that contains the exact number of fields in the map ?</p>
  
  <p>Can I exclude field3 while deserialization ? How do I do that ?</p>