Click or drag to resize
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.Personalization
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
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: JsonResult
The result object that serializes the specified object to JSON format in camel case.
See Also