JsonExtensionsParseJsonStringT Method (IFrame, String) |
Creates an object that represents the result of parsing the given string in JSON format.
Namespace:
DotNetBrowser.Js
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.7
Syntax public static T ParseJsonString<T>(
this IFrame frame,
string jsonString
)
Parameters
- frame
- Type: DotNetBrowser.FramesIFrame
The frame to use for conversion. - jsonString
- Type: SystemString
A string in JSON format.
Type Parameters
- T
-
The expected result type. The following types are supported: Boolean,
Double, String, IJsObject, or Object.
Return Value
Type:
T
The result of parsing. Can be
null if the result of parsing is
null.
For example, when the given JSON string is "null", then the method returns
nullUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IFrame. 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 Exception | Condition |
---|
JsException |
The given JSON string object cannot be parsed.
|
See Also