var json= { "Type": "Coding", "Height":100 }; for (var key in json) { alert(key); alert(json[key]); } $.each(json, function(i) { alert(json[i]); alert(i); });
var json= { "Type": "Coding", "Height":100 }; for (var key in json) { alert(key); alert(json[key]); } $.each(json, function(i) { alert(json[i]); alert(i); });