When i try to read a JSON string like below it goes to endless loop.
$("#Button1").click(function() { var json = $.parseJSON("[{'City':'Lucknow','ID':'1'},{'City':'Mumbai','ID':'2'}]"); $.each(json, function() { alert(this['City']); });
It's better to use json2.js from: http://www.json.org/js.html