title: Can't read values from JSON Array in Javascript
body: <p>I'm currently coding a script which will get the latest posts from my webpage to display them on my webpage. I already created a php script which will create a json array for my script to read from. The script actually reads the json just fine 
  (This is the JSON we're talking about:</p>
  
  <pre><code>[
  {
      "id":18,
      "title":"Linktest",
      "content":"&lt;a href=\"http:\/\/www.youtube.com\/\"&gt;Dies ist ein Link&lt;\/a&gt;",
      "datetime":"2014-04-12T17:20:30.000Z"
      },
  {
      "id":4,
      "title":"Noch ein Test",
      "content":"Dies ist noch ein Test!",
      "datetime":"2014-04-11T14:11:35.000Z"
      },
  {
      "id":1,
      "title":"Test",
      "content":"Aloha Leute,\r\n&lt;p&gt;Das ist ein Testpost!&lt;\/p&gt;",
      "datetime":"2014-04-11T11:09:43.000Z"
      }
   ]
  </code></pre>
  
  <p>Now, for some odd reason I cannot read values from this JSON array by just doing for example: <code>response[1]</code>  ("response" being the variable I've assigned the array to) because that's just giving me a white space when I'm trying to output it. Does anyone know a solution to this problem?</p>
  
  <p>Edit: Here's the javascript code:</p>
  
  <pre><code>//the replace is to display the data without html tags, it was just for testing purposes
  var response = JSON.parse(xhr.responseText).replace(/[\u00A0-\u9999&lt;&gt;\&amp;]/gim, function(i) {
      return '&amp;#'+i.charCodeAt(0)+';';
      });
      var lol = document.getElementById("lol");
      lol.innerHTML = response;
  </code></pre>