ConditionTypeControllerTConditionTypeJson Method |
Creates a JsonCamelCaseResult object that serializes the specified object to JavaScript Object Notation (JSON) camel case format using the content type, content encoding, and the JSON request behavior.
Namespace: Kentico.PageBuilder.Web.Mvc.PersonalizationAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax protected override JsonResult Json(
Object data,
string contentType,
Encoding contentEncoding,
JsonRequestBehavior behavior
)
Parameters
- data
- Type: SystemObject
The JavaScript object graph to serialize. - contentType
- Type: SystemString
The content type (MIME type). - contentEncoding
- Type: System.TextEncoding
The content encoding. - behavior
- Type: JsonRequestBehavior
The JSON request behavior.
Return Value
Type:
JsonResultThe result object that serializes the specified object to JSON format in camel case.
See Also