[]
Serialize data to json for C1 data.
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
| 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. |
| Type | Description |
|---|---|
| JsonResult | The json result |