title: iterate a List<HashMap<String, String>> values using java
body: <p>I have a json response like this </p>
  
  <pre><code>{
    "queryPath": "/api/",
    "nId": "f084f5ad24fcfaa9e9faea0",
    "statusCode": 707
    "statusMessage": "Success",
    "results": {
      "data": [
        {
          "id": "10248522500798",
          "capabilities": [
            "men",
            "women"
          ],
          "name": "errt2"
        },
        {
          "id": "418143778",
          "capabilities": [
            "dog",
            "cat"
          ],
          "name": "Livin"
        }
      ]
    }
  }
  </code></pre>
  
  <p>Here am adding <code>results.data</code> to a list as follows</p>
  
  <pre><code>  private List&lt;HashMap&lt;String, String&gt;&gt; episodes = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
    episodes =helper.getJSONValue(response, "results.data"); 
  
  
  
     public &lt;T&gt;T getJSONValue(Response res, String path ){
          String json = res.asString();
          JsonPath jpath = new JsonPath(json);
          return jpath.get(path);
      }
  </code></pre>
  
  <p>so episodes contains all data i mean all results.data
  While i debuging am getting this way</p>
  
  <pre><code> [{id=10248522500798, name=errt2, capabilities=[men, women]}, {id=418143778, name=Livin, capabilities=[dog, cat]}]
  </code></pre>
  
  <p>Here i have capabilities <code>[men, women]</code> and <code>[dog, cat]</code>.i need to check capability contains <code>men</code> or <code>dog.</code>
  How can i do that?</p>