How do I return JSON and loop through the returned json in jQuery in MVC app?

前端 未结 4 878
情书的邮戳
情书的邮戳 2021-01-06 09:13

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

4条回答
  •  我在风中等你
    2021-01-06 10:07

    Remove [HttpPost] from your controller method to allow get requests in conjunction with JsonRequestBehavior.AllowGet

    What internal server error do you get? what is the message?

提交回复
热议问题