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

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static Object FromJsonString(
	string json,
	Type type
)
Visual Basic
Public Shared Function FromJsonString ( 
	json As String,
	type As Type
) As Object

Parameters

json
Type: System..::..String
paramjsonM:DotNetNuke.Common.Utilities.JsonExtensionsWeb.FromJsonString(System.String,System.Type)
type
Type: System..::..Type
paramtypeM:DotNetNuke.Common.Utilities.JsonExtensionsWeb.FromJsonString(System.String,System.Type)

Return Value

returnsM:DotNetNuke.Common.Utilities.JsonExtensionsWeb.FromJsonString(System.String,System.Type)

See Also