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?
Sounds like all you want to do is return your model from the controller as a JsonResult:
public ActionResult Index()
{
return Json(yourModel);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With