Extension method to string that deserializes a json string
into a specific type.
Note that the type specified must be serializable.
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static Object FromJson( this string json, Type type ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function FromJson ( json As String, type As Type ) As Object |
Parameters
- json
- Type: System..::..String
paramjsonM:DotNetNuke.Common.Utilities.JsonExtensionsWeb.FromJson(System.String,System.Type)
- type
- Type: System..::..Type
paramtypeM:DotNetNuke.Common.Utilities.JsonExtensionsWeb.FromJson(System.String,System.Type)