[]
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)
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 |