title: Count no. of entries in a json object having specific values in multiple keys
body: <p>Is there a way to fetch/search data from a json object, similar to firing a query, using javascript?</p>
  
  <p>My scenario: I have a big json object (if you think of it like a database, it has 12 columns, and 1000 rows). I need to know how many rows have a specific value pair (i.e. number of rows having , 'USA' in column 1 and 'INDIA' in column 2).</p>
  
  <p>Eg.(For example, I have created a small example json object)</p>
  
  <p>json object:</p>
  
  <pre><code>{"export":
     [{"goods":"Wheat ", "from":"GHANA", "to":"AUSTRALIA"},    
      {"goods":"Wheat", "from":"USA", "to":"INDIA"},    
      {"goods":"Wheat", "from":"SINGAPORE", "to":"MALAYSIA"},    
      {"goods":"Wheat", "from":"USA", "to":"INDIA"},    
  ]}
  </code></pre>
  
  <p>In the example, since there are two rows where from is USA and to is INDIA.</p>
  
  <p>It can be thought of similar to mysql query: </p>
  
  <pre><code>select * from export where from = "USA" and to = "INDIA";
  </code></pre>
  
  <p>Can I do this on a json object using javascript ?</p>
  
  <p>If not, can a similar thing be done from a csv file, I also have the csv file of that data?</p>