JSON return format in ASP.NET MVC
.net, asp.net-mvc, jquery, json
Solution
Sounds like all you want to do is return your model from the controller as a JsonResult:
public ActionResult Index()
{
return Json(yourModel);
}
Problem
Actually my question is simple. I think. But unfortunately, Google can't help me this time. I want to return a JSON in my view in this format: ``` [[0,"Mark Kordon",null,"My HTML - Mark Kordon"],[1,"John Doe",null,"John Doe Markup"]] ``` How is this possible?