JsonResult JsonResult JsonResult Constructors

Definition

Overloads

JsonResult(Object) JsonResult(Object) JsonResult(Object)

Creates a new JsonResult with the given value.

JsonResult(Object, JsonSerializerSettings) JsonResult(Object, JsonSerializerSettings) JsonResult(Object, JsonSerializerSettings)

Creates a new JsonResult with the given value.

JsonResult(Object) JsonResult(Object) JsonResult(Object)

Creates a new JsonResult with the given value.

public JsonResult (object value);
new Microsoft.AspNetCore.Mvc.JsonResult : obj -> Microsoft.AspNetCore.Mvc.JsonResult
Public Sub New (value As Object)

Parameters

value
Object Object Object

The value to format as JSON.

JsonResult(Object, JsonSerializerSettings) JsonResult(Object, JsonSerializerSettings) JsonResult(Object, JsonSerializerSettings)

Creates a new JsonResult with the given value.

public JsonResult (object value, Newtonsoft.Json.JsonSerializerSettings serializerSettings);
new Microsoft.AspNetCore.Mvc.JsonResult : obj * Newtonsoft.Json.JsonSerializerSettings -> Microsoft.AspNetCore.Mvc.JsonResult
Public Sub New (value As Object, serializerSettings As JsonSerializerSettings)

Parameters

value
Object Object Object

The value to format as JSON.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings Newtonsoft.Json.JsonSerializerSettings Newtonsoft.Json.JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings to be used by the formatter.

Applies to