title: Accessing an attribute of a js object
body: <p>I'm using node-rest-client to fetch data from an api. It all goes well until I get the data back (a js object), then I am unable to access the attributes of the response:</p>
  
  <pre><code>console.log("dataObject:", dataObject);
  console.log("dataObject.access_token:", dataObject.access_token);
  console.log("dataObject['access_token']:", dataObject['access_token']);
  </code></pre>
  
  <p>prints this to the log: </p>
  
  <pre><code>15:12:39 worker.1  | dataObject: {"access_token":"uzJB9nG1ZbpsJaFy","token_type":"bearer"}
  15:12:39 worker.1  | dataObject.access_token: undefined
  15:12:39 worker.1  | dataObject['access_token']: undefined
  </code></pre>
  
  <p>I don't understand how that is possible!</p>