title: Efficient way to read JSON file?
body: <p>I have seen different method to read JSON files from localy in Nodejs. like this;</p>
  
  <ol>
  <li><p>Method</p>
  
  <p><strong>using fs library</strong></p>
  
  <p>Sync</p>
  
  <pre><code>var fs = require('fs');
  var obj = JSON.parse(fs.readFileSync('file', 'utf8'));
  </code></pre>
  
  <p>Async:</p>
  
  <pre><code>var fs = require('fs');
  var obj;
  fs.readFile('file', 'utf8', function (err, data) {
    if (err) throw err;
    obj = JSON.parse(data);
  });
  </code></pre>
  
  <p>Source : <a href="https://stackoverflow.com/a/10011078/7724032">https://stackoverflow.com/a/10011078/7724032</a></p></li>
  <li><p>Method</p>
  
  <p><strong>using require()</strong></p>
  
  <pre><code>let data = require('/path/file.json');
  </code></pre></li>
  <li><p>Method</p>
  
  <p>using Ajax request
  <a href="https://stackoverflow.com/q/34179986/7724032">How to retrieve data from JSON file using Jquery and ajax?</a></p></li>
  </ol>
  
  <p>There might have any other ways. But I heard when reading JSON file using Method 1 is efficient than other methods. </p>
  
  <p>I'm developing a module where I have to read a JSON file when each client side request and Im currently using Method 1. This is banking application and performance is matter. so help me to find which way is good to use this senario? </p>
  
  <p>Thanks , Any help would be appreciated!</p>