title: Extract JSON field from JSON data in Node.js
body: <p>Hi I have a JSON string named <code>body</code> with following contents:</p>
  
  <p><code>[ { _index: 'domain',
      _type: 'tweets',
      _id: 'AVQDcXJkNcXkyWvNoI-S',
      _score: 1.3844389,
      _source:
       { username: 'rosscmary@gmail.com',
         text: '@amrightnow Go Trump Go Trump Go Trump',
         location: [Object] } },
    { _index: 'domain',
      _type: 'tweets',
      _id: 'AVQDe5CONcXkyWvNoI_G',
      _score: 0.98909086,
      _source:
       { username: 'Trump Hotels Jobs',
         text: '#Vancouver, BC #CustomerService #Job: Reservations Agent at Trump ',
         location: [Object] } },
    { _index: 'domain',
      _type: 'tweets',
      _id: 'AVQDfDpfNcXkyWvNoI_L',
      _score: 0.5487978,
      _source:
       { username: '☩Chaunce☩',
         text: 'While figuring out what 2 do next,  #Trump complains 2 his rep about not winning a "popcorn" it seems he\'ll go after the #MTVMovieAwards too',
         location: [Object] } } ]</code></p>
  
  <p><em>I want to extract every <code>text</code> field from this file and log it to the console.</em></p>
  
  <p><em>Right now I am doing this :</em> </p>
  
  <p><code>var jsonContent = JSON.parse(body);
      jsonContent = JSON.parse(JSON.stringify(jsonContent));
      console.log(jsonContent);</code></p>
  
  <p>But it's not working.</p>
  
  <p>Can any body help me with this ? I am using node js and been stuck on this one.</p>