[]
        
(Showing Draft Content)

C1.Web.Mvc.Serialization.JsonConvertHelper.C1Json

C1Json Method

C1Json(Controller, object, string, Encoding, JsonRequestBehavior, bool)

Serialize data to json for C1 data.

Declaration
public static JsonResult C1Json(this Controller controller, object data, string contentType = null, Encoding contentEncoding = null, JsonRequestBehavior behavior = 1, bool useCamelCasePropertyName = true)
Public Shared Function C1Json(controller As Controller, data As Object, Optional contentType As String = Nothing, Optional contentEncoding As Encoding = Nothing, Optional behavior As JsonRequestBehavior = 1, Optional useCamelCasePropertyName As Boolean = True) As JsonResult
Parameters
Type Name Description
Controller controller

The controller

object data

The data

string contentType

The content type

Encoding contentEncoding

The content encoding

JsonRequestBehavior behavior

The json request behavior

bool useCamelCasePropertyName

A bool value decides whether to use camel case to serialize the data.

Returns
Type Description
JsonResult

The json result