How to output Json string as JsonResult in MVC4?

后端 未结 2 1529
無奈伤痛
無奈伤痛 2020-12-05 10:01

This seems so simple I must be over-thinking it.

TL;DR;

How can I modify the code below to return the json object contained in the string

2条回答
  •  情话喂你
    2020-12-05 10:43

    public ActionResult Test()
    {
      return Json(new { success = true }, JsonRequestBehavior.AllowGet);
    }
    

提交回复
热议问题