title: Dealing with JSON result
body: <p>I'm having trouble reading the JSON data from a venues search. Here is my code:</p>
  
  <pre><code>xmlhttpRC = new XMLHttpRequest();
  url = "https://api.foursquare.com/v2/venues/explore?ll="+pointStrr+"&amp;oauth_token=V5PI2GJ0KDOVH2GAHNHJ5DVLMRKNF440FR1N1HPG0XHX2OBQ&amp;v=2015643&amp;
  callback=JSONP";
  xmlhttpRC.open("GET", url, true);
  xmlhttpRC.onreadystatechange = recCb;      
  xmlhttpRC.send(null);
  //return recommendedArr;
  }
  
  function recCb(data){
  //console.log(data);
  if(xmlhttpRC.readyState == 4){
      if(xmlhttpRC.status == 200){
          var recRes = xmlhttpRC.response;
  
          console.log(recRes);
  
          //console.log(recRes);
          console.log(recRes.meta.code);
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I get the reponse I expect from the server, and firebug shows me that a JSON object is returned, but I am not sure how to access the data inside from here.</p>
  
  <p>console.log(recRes.meta.code) returns the error:</p>
  
  <p>"recRes.meta is undefined"</p>
  
  <p>Where am I going wrong?
  I want to access the venues information but I am just using meta.code as a simple test.
  This is probably really simple but I'm stumped!</p>
  
  <p>Thanks in advance,
  Ross.</p>