I have 2 questions:
What is the difference between JSONResult and ActionResult?
When to use JSONResult in MVC?
According to the MSDN documentation for the ActionResult
:
The ActionResult class Encapsulates the result of an action method and is used to perform a framework-level operation on behalf of the action method.
An action method responds to user input by performing work and returning an action result. An action result represents a command that the framework will perform on behalf of the action method. The ActionResult class is the base class for action results
And for JsonResult:
Represents a class that is used to send JSON-formatted content to the response.