title: Read a JSON file using node JS
body: <p>I'm trying to read the following json file into node js : </p>
  
  <p>myData.json</p>
  
  <pre><code>[
    {"1000000": {
      "name": "ALEX",
      "intern": false,
      "purchase": 76
    }},
    {"2000000": {
      "name": "KELVIN",
      "purchase": false,
      "days": 46
    }},
    {"3000000": {
      "name": "PUTIN",
      "intern": false,
      "purchase": 9
    }}
  ]
  var fs = require('fs');
  var obj = JSON.parse(fs.readFileSync('./flatSearch.json', 'utf8'));
  console.log("Name is " + obj[0]);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>{ '1000000' : { "name": "ALEX",  "intern": false,  "purchase": 76  }}
  </code></pre>
  
  <p>What I need is :
  1) I need just the name or the intern value or purchase value<br>
  2) I need just the value 1000000</p>
  
  <p>Could someone help me on how can I fetch these values in node JS ? </p>