title: Access object inside an array - Javascript
body: <p>This is how my response body looks like. 
  Its stored in a variable and when i use 
  console.log(body) I get the following.  </p>
  
  <pre><code>[
     {
        "key1":"value1",
        "key2":"value2",
        "key3":"value3"
     }
  ]
  </code></pre>
  
  <p>Im trying to access "key3" using the following </p>
  
  <pre><code>console.log(body[0].key3) 
  </code></pre>
  
  <p>I get undefined. Im not sure what is wrong here. If i just do </p>
  
  <p><code>console.log(body[0])</code> </p>
  
  <p>im getting a string <code>[</code></p>
  
  <p>Thanks for your help here. </p>