This is the json encoded string using php :
{"customer_id":"1","customer_name":"dd"}
I want to fetch the value customer_name from above string:
My code:
var obj=json.parse(data);
$.each(obj,function(item){
item.customer_name
});
Please help