[]
        
(Showing Draft Content)

C1.Web.Api.C1ApiController.Json

Json Method

Json<T>(T, JsonSerializerSettings, Encoding)

Creates a System.Web.Http.Results.JsonResult`1 (200 OK) with the specified values.

Declaration
protected override JsonResult<T> Json<T>(T content, JsonSerializerSettings serializerSettings, Encoding encoding)
Parameters
Type Name Description
T content

The content value to serialize in the entity body.

JsonSerializerSettings serializerSettings

The serializer settings.

Encoding encoding

The content encoding.

Returns
Type Description
JsonResult<T>

A System.Web.Http.Results.JsonResult`1 with the specified values.

Type Parameters
Name Description
T

The type of content in the entity body.