title: Parsing JSON using javascript only
body: <p>I tried looking for a similar question, couldn't find anything detailed enough. </p>
  
  <p>I have a an ajax call, which calls a php page and the response is:</p>
  
  <pre><code>echo json_encode($cUrl_c-&gt;temp_results);
  </code></pre>
  
  <p>Which outputs:</p>
  
  <pre><code>{"key":"value", "key2":"value"}
  </code></pre>
  
  <p>The output is being "parsed" using: </p>
  
  <pre><code>var json_response = JSON.parse(xmlhttp.responseText);
  </code></pre>
  
  <p>I was looking for a way to iterate through the response, and getting 
  the key and value using javascript only. </p>
  
  <ol>
  <li>is the returned output considered valid json ?</li>
  <li>How do I loop through it (no jquery just javascript) ?</li>
  </ol>