Class JsonExtensions
Inheritance
System.Object
JsonExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.Mvc
Assembly: EPiServer.Shell.dll
Version: 11.20.7Syntax
public static class JsonExtensions
Methods
JsonData(Controller, Object)
Declaration
public static JsonDataResult JsonData(this Controller controller, object data)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.Controller | controller | |
System.Object | data |
Returns
Type | Description |
---|---|
JsonDataResult |
JsonData(Controller, Object, JsonRequestBehavior)
Declaration
public static JsonDataResult JsonData(this Controller controller, object data, JsonRequestBehavior behavior)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.Controller | controller | |
System.Object | data | |
System.Web.Mvc.JsonRequestBehavior | behavior |
Returns
Type | Description |
---|---|
JsonDataResult |
JsonData(Controller, Object, JsonRequestBehavior, IObjectSerializerFactory)
Declaration
public static JsonDataResult JsonData(this Controller controller, object data, JsonRequestBehavior behavior, IObjectSerializerFactory serializerFactory)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.Controller | controller | |
System.Object | data | |
System.Web.Mvc.JsonRequestBehavior | behavior | |
IObjectSerializerFactory | serializerFactory |
Returns
Type | Description |
---|---|
JsonDataResult |
WrappedJsonData(Controller, Object)
Declaration
public static WrappedJsonDataResults WrappedJsonData(this Controller controller, object data)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.Controller | controller | |
System.Object | data |
Returns
Type | Description |
---|---|
WrappedJsonDataResults |