title: GSON fromJSON Deserialization with Conditional to Exclude Specific Object Instances
body: <p>Given the following JSON response:</p>
  
  <pre><code>{
      "status": "OK",
      "regions": [
          {
              "id": "69",
              "name": "North Carolina Coast",
              "color": "#01162c",
              "hasResorts": 1
          },
          {
              "id": "242",
              "name": "North Carolina Inland",
              "color": "#01162c",
              "hasResorts": 0
          },
          {
              "id": "17",
              "name": "North Carolina Mountains",
              "color": "#01162c",
              "hasResorts": 1
          },
          {
              "id": "126",
              "name": "Outer Banks",
              "color": "#01162c",
              "hasResorts": 1
          }
      ]
  }
  </code></pre>
  
  <p>I'm trying to create a List of Region objects.  Here's a very abridged version of my current code:</p>
  
  <pre><code>JSONObject jsonObject = new JSONObject(response);
  String regionsString = jsonObject.getString("regions");                             
  Type listType = new TypeToken&lt;ArrayList&lt;Region&gt;&gt;() {}.getType();                                
  List&lt;Region&gt; regions = new Gson().fromJson(regionsString, listType);  
  </code></pre>
  
  <p>This is all working fine.  However, I'd like to exclude the regions in the final List that hasResorts == 0.  I realize I can loop through the actual JSONObjects and check them before calling fromJSON on each region.  But I'm assuming there is a GSON specific way of doing this.</p>
  
  <p>I was looking at the ExclusionStrategy().  Is there a simple way to implement this to JSON deserialization?</p>