title: How can I get access_token from JSON data
body: <p>I am trying to get <code>access_token</code> from a REST API call, able to get the whole JSON response, but unable to access the <code>access_token</code> or <code>refresh_token</code> to use them.</p>
  
  <pre><code>var token = JSON.stringify(body);
  var accessToken = token.access_token
  console.log(accessToken);
  </code></pre>
  
  <blockquote>
    <p>'accessToken' is undefined i.e. cannot get the value</p>
  </blockquote>
  
  <p>Please suggest</p>