Click or drag to resize

JsonExtensionsToJsonString Method

Converts the given JavaScript object into a JSON string.

Namespace:  DotNetBrowser.Js
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.0
Syntax
C#
public static string ToJsonString(
	this IJsObject jsObject
)

Parameters

jsObject
Type: DotNetBrowser.JsIJsObject
The JavaScript object to convert.

Return Value

Type: String
A JSON representation of the given JavaScript object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IJsObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
JsException The given JavaScript object cannot be converted to a JSON string. For example, a circular reference was found in the given JavaScript object.
See Also