Method ToJsonString
- Namespace
- DotNetBrowser.Js
- Assembly
- DotNetBrowser.dll
ToJsonString(IJsObject)
Converts the given JavaScript object into a JSON string.
public static string ToJsonString(this IJsObject jsObject)
Parameters
jsObject
IJsObjectThe JavaScript object to convert.
Returns
- string
A JSON representation of the given JavaScript object.
Exceptions
- JsException
The given JavaScript object cannot be converted to a JSON string. For example, a circular reference was found in the given JavaScript object.