title: JSON Parse error from json_encode back to javascript
body: <p>I am using JQuery to make an ajax request. In my php, I have an associative array. Here is the main portion of it:</p>
  
  <pre><code>$log = array('data','moredata');
  $eventine = array('this','format');
  $logID = array('another','array');
  $data['log'] = $log;
  $data['time'] = $eventtime;
  $data['id'] = $logID;
  echo json_encode($data);
  </code></pre>
  
  <p>When I return the json object. I use this portion of javascript to get the values:</p>
  
  <pre><code>//after getting data back from ajax call
  x = JSON.parse(data);
         for (i = 0; i &lt; x.log.length; i++) {
      results += x.time[i] +": "+x.log[i];
      results += "&lt;br /&gt;";
                      }
  </code></pre>
  
  <p>The code works perfectly. My complaint is that it is throwing an error in the browser's firebug and IE log. It says I have a JSON.parse error. I've looked everywhere online and couldn't find anything similar.</p>
  
  <p>The strange thing is.This code is working. But it keeps saying there is an error.</p>
  
  <p>If anybody could assist me and telling me what I've done wrong, I would be very grateful.If you need more information, I am happy to post more code. Never posted here before and not sure on limits.</p>