JQUERY getJSON / ajax response not being processed

FOEDECOLE

New Member
I am sending a json request to a server as below:\[code\]$.getJSON("prod_search.php?type=getCustInfo&custID="+custID, function(json) { alert(json.address); $("#invAddress").html(json.address); $("#currency").html(json.second);});\[/code\]Using firebug to check, the response is below, but the alert shows 'undefined' and no values are inserted.\[code\][{"address":"abc123","second":"ABC"}]\[/code\]Any ideas?
 
Back
Top