Share via


JsonResult Class

Definition

Represents a class that is used to send JSON-formatted content to the response.

public class JsonResult : System.Web.Mvc.ActionResult
type JsonResult = class
    inherit ActionResult
Public Class JsonResult
Inherits ActionResult
Inheritance
JsonResult

Constructors

JsonResult()

Initializes a new instance of the JsonResult class.

Properties

ContentEncoding

Gets or sets the content encoding.

ContentType

Gets or sets the type of the content.

Data

Gets or sets the data.

JsonRequestBehavior

Gets or sets a value that indicates whether HTTP GET requests from the client are allowed.

MaxJsonLength

Gets or sets the maximum length of data.

RecursionLimit

Gets or sets the recursion limit.

Methods

ExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.

Applies to