I have a controller that returns a list of custom linq-to-sql model objects in JSON format to jquery ajax calls:
List<MyAppLibrary.Model.Search> listSearches = search.ToList();
return new JsonResult { Data = listSearches };
I have the following javascript which gets the response:
$.getJSON("/ajax/getbrands",
function(data) {
alert(data);
});
I'd like to know how I can process that data response in javascript? How do I get the Name paramter of the Model.Search object?
Thanks.