title: Node.JS: Request a Key-Value from JSON Object
body: <p>API_URL show something like this:</p>
  
  <pre><code>{
      "posts": [{
          "id": "987f2bhfzu3r3f43fg",
          "uuid": "g3g4g-4g34gd7f-40ae-96g43g82-65g34g43ccec94a566",
          "title": "This is my title",
          "tag": "thistag"
      }]
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>const request = require('request');
  
  
  request('API_URL', { json: true }, (err, res, body) =&gt; {
    if (err) { return console.log(err); }
    console.log(body.posts);
  
  });
  </code></pre>
  
  <p>Returns me </p>
  
  <pre><code>[{
      "id": "987f2bhfzu3r3f43fg",
      "uuid": "g3g4g-4g34gd7f-40ae-96g43g82-65g34g43ccec94a566",
      "title": "This is my title",
      "tag": "thistag"
  }]
  </code></pre>
  
  <p>If I try <code>console.log(body.posts.title);</code> in my code it returns</p>
  
  <blockquote>
    <p>undefined</p>
  </blockquote>
  
  <p>Who do I get the keyvalue of <strong>title</strong>?</p>