Method ParseJsonString
- Namespace
- DotNetBrowser.Js
- Assembly
- DotNetBrowser.dll
ParseJsonString<T>(IFrame, string)
Creates an object that represents the result of parsing the given string in JSON format.
public static T ParseJsonString<T>(this IFrame frame, string jsonString)
Parameters
Returns
- T
The result of parsing. Can be
null
if the result of parsing isnull
. For example, when the given JSON string is "null", then the method returnsnull
Type Parameters
T
The expected result type. The following types are supported: bool, double, string, IJsObject, or object.
Exceptions
- JsException
The given JSON string object cannot be parsed.
ParseJsonString(IFrame, string)
Creates an object that represents the result of parsing the given string in JSON format.
public static object ParseJsonString(this IFrame frame, string jsonString)
Parameters
Returns
- object
The result of parsing. Can be
null
if the result of parsing isnull
. For example, when the given JSON string is "null", then the method returnsnull
Exceptions
- JsException
The given JSON string object cannot be parsed.