• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class JsonExtensionsWeb

Json Extensions based on the JavaScript Serializer in System.web.

Inheritance
System.Object
JsonExtensionsWeb
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class JsonExtensionsWeb : object

Methods

| Improve this Doc View Source

FromJson(String, Type)

Extension method to string that deserializes a json string into a specific type. Note that the type specified must be serializable.

Declaration
public static object FromJson(this string json, Type type)
Parameters
Type Name Description
System.String json
Type type
Returns
Type Description
System.Object
| Improve this Doc View Source

FromJson<TType>(String)

Declaration
public static TType FromJson<TType>(this string json)
Parameters
Type Name Description
System.String json
Returns
Type Description
TType
Type Parameters
Name Description
TType
| Improve this Doc View Source

FromJsonString(String, Type)

Deserializes a json string into a specific type. Note that the type specified must be serializable.

Declaration
public static object FromJsonString(string json, Type type)
Parameters
Type Name Description
System.String json
Type type
Returns
Type Description
System.Object
| Improve this Doc View Source

ToJson(Object)

Extension method on object that serializes the value to Json. Note the type must be marked Serializable or include a DataContract attribute.

Declaration
public static string ToJson(this object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.String
| Improve this Doc View Source

ToJsonString(Object)

Serializes a type to Json. Note the type must be marked Serializable or include a DataContract attribute.

Declaration
public static string ToJsonString(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.String
  • View Source
Back to top by the community, for the community... #DNNCMS