Extension method on object that serializes the value to Json.
Note the type must be marked Serializable or include a DataContract attribute.
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public static string ToJson( this Object value ) |
| Visual Basic |
|---|
<ExtensionAttribute> Public Shared Function ToJson ( value As Object ) As String |
Parameters
- value
- Type: System..::..Object
paramvalueM:DotNetNuke.Common.Utilities.JsonExtensionsWeb.ToJson(System.Object)