title: Syntax Error unexpected Token u Json error
body: <p>I am calling a YUI function to get status message from a php function that return the proper status in json format.</p>
  
  <p>when i trigger the event in gives the error message :-</p>
  
  <p>"Syntax error unexpected token u"</p>
  
  <p>Here is the source :-</p>
  
  <pre><code> var ajax_url = 'initcalls.php?action=ping';
   var pngbtn = Y.one('#id_solr_btn_ping');
      pngbtn.on('click', function(e) {
  
            Y.one('#solr_ping_status').setHTML('&amp;nbsp;&lt;img src="pix/ajax-circle.gif"&gt;');
            Y.io(ajax_url, {
              on : {
                  success : function(data) {
          try
          {
                var resp = Y.JSON.parse(data.responseText);
                      }
          catch (e)
                       {
                             alert(e);
                             return;
                       }
          if (resp.status == 'ok') {
             Y.one('#solr_ping_status').setHTML('&amp;nbsp;&lt;img src="pix/success.png"&gt;');
             timeout("clearSaveStatus('#solr_ping_status')",2000);
          }
          else {
          Y.one('#solr_ping_status').setHTML('&amp;nbsp;&lt;img src="pix/warning.png"&gt;');
          }}
          }
                });
  
              return false; 
  
             });
  </code></pre>
  
  <p>My php file return the following result:-</p>
  
  <pre><code>     {"status":"ok"}
  </code></pre>