I have a php page from which I get response in json:
[{\'com\':\'something\'},{\'com\':\'some other thing\'}]
I want to loop it and append
var data=[{'com':'something'},{'com':'some other thing'}]; $.each(data, function() { $.each(this, function(key, val){ alert(val);//here data alert (key); //here key }); });