title: How to filter a Multi-dimension JSON object with jQuery.grep()
body: <p>I have a JSON object that goes like this:</p>
  
  <pre><code>{"data":
   [
    {"name":"Alan","height":"171","weight":"66"},
    {"name":"Ben","height":"182","weight":"90"},
    {"name":"Chris","height":"163","weight":"71"}
   ]
   ,"school":"Dover Secondary"
  }
  </code></pre>
  
  <p>I would like to filter the JSON object to obtain data of those taller than 170 and heavier than 70 and subsequently sort this object. From the <a href="http://api.jquery.com/jQuery.grep/" rel="noreferrer">jQuery website</a>, I understand that filtering would be easily achieved on a linear array with something like:</p>
  
  <pre><code>arr = jQuery.grep(arr, function(element, index){
    return (element &gt; 70 &amp;&amp; index = 'weight');
  });
  </code></pre>
  
  <p>How do I filter both weight and height concurrently to get this:</p>
  
  <pre><code>{"data":
   [
    {"name":"Ben","height":"182","weight":"90"},
   ]
   ,"school":"Dover Secondary"
  }
  </code></pre>