I am using a jquery ajax call which accepts json response :
var posturl = \'/admin/getparamdetails/\'; var data = \"adnetworkId=\"+adnetworkId; $.a
you have to send the data as Content-Type "application/json", otherwise it won't work.
Just add the following in your PHP File:
header('Content-type: application/json');
Use parseJSON on the return data:
if (msg) { msg = $.parseJSON(msg); alert(msg.hello); }