I have an MVC controller that returns JSON. I want to read/get that JSON using jQuery and loop through the json items/rows.
Basically I am reading bunch of comments
$.ajax( { type: "GET", url: "/comment/GetComments", dataType: "json", data: "blog_id=100&page_size=5&page_no=1", success: function (result) { jQuery.each(result['comments'], function(key,val){ // do stuff :) }); }, error: function (req, status, error) { alert('Error getting comments'); } });