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
success: function(result) {
$.each(result["comments"], function(key, value) {
// loop
});
}
Your result should be a json object
{
"comments": ...
}
As for the get failing try :
type: "GET",
url: "/comment/GetComments?blog_id=100&page_size=5&page_no=1",
dataType: "json",
//data: "blog_id=100&page_size=5&page_no=1",