title: How to filter JSON data in node.js?
body: <p>I have seen very old answers to this question and many of the technologies used 2 years back have changed.</p>
  
  <p>What I have is JSON files sent by a database over to my server, and what I would like to know is how to filter that data.</p>
  
  <p>I am running a server with node.js, and what I would like to do is something like:</p>
  
  <pre><code>var results = QueryLibrary.load(jsondata);
  var filtered = results.query('select where user = "user1"');
  </code></pre>
  
  <p>How can I do something like this in javascript running in node?</p>