title: How to parse JSON in node js
body: <p>I have this JSON array, and what I want is to get the password field alone</p>
  
  <pre><code>var user = [ { _id: 5902086ecbc0dd11e4870fd9,
      password: '$2a$08$FIpkmFT1WDZggQYyBA4CVuop6pelbKBfUEJ1/KAVIV2Si9Ho1EYhi',
      email: 'jv100@gmail.com',
      lastName: 'v',
      firstName: 'j',
      updatedDate: 2017-04-27T15:04:14.483Z,
      createdDate: 2017-04-27T15:04:14.483Z } ]
  </code></pre>
  
  <p>I tried to parse it using this code</p>
  
  <pre><code>var obj = JSON.parse(user);
  console.log(user.password);
  </code></pre>
  
  <p>but still it is undefined.</p>