I'm trying to test something here and having issues getting it to work. here's my jquery script : // I should get an alert object if it works? but in firebug all I get is invalid label.
var url = "http://127.0.0.1/projects/micro-printing.com/projects/ micro-server/index.php/client_api/test?callback=?"; $.getJSON(url, function(data){ alert(data); }); heres the json that I'm getting using zend_json: {"job_Description":"My Job","job_Notes":"My jobs notes are here."} and here's the php in case it helps $json = new Zend_Json(); $job_data = array( 'job_Description' => 'My Job' , 'job_Notes' => 'My jobs notes are here.'); echo $json->encode($job_data);