title: Jquery how to query Json Object with multiple where clause
body: <p>How do I query multiple columns/properties from a json object?
  I am trying <a href="http://jsbin.com/jihofe/1/edit?js,console" rel="nofollow noreferrer">this</a> to query single column "category". How can Query with both Category and Id?</p>
  
  <pre><code>var data = {
    "items": [{
      "id": 1,
      "category": ["cat1","cat2"]
    }, {
      "id": 2,
      "category": ["cat1","cat3"]
    }, {
      "id": 3,
      "category": ["cat11","cat2"]
    }]
  };
  
  var returnedData = $.grep(data.items, function (element) {    
    return element.category.indexOf('cat1') &gt;= 0;
  });
  
  console.log(returnedData);
  </code></pre>