Answers

Question and Answer:

  Home  MVC Developer

⟩ Tell us what is JsonResultType in MVC?

Action methods on controllers return JsonResult (JavaScript Object Notation result) that can be used in an AJAX application. This class is inherited from the "ActionResult" abstract class. Here Json is provided one argument which must be serializable. The JSON result object that serializes the specified object to JSON format.

public JsonResult JsonResultTest()

{

return Json("Hello Boos!");

}

 149 views

More Questions for you: