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
Your array has default keys(0,1) which store object {'com':'some thing'} use:
{'com':'some thing'}
var obj = jQuery.parseJSON(response); $.each(obj, function(key,value) { alert(value.com); });