Click or drag to resize

JsonExtensionsParseJsonString 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.21.0
Syntax
C#
public static Object ParseJsonString(
	this IFrame frame,
	string jsonString
)

Parameters

frame
Type: DotNetBrowser.FramesIFrame
The frame to use for conversion.
jsonString
Type: SystemString
A string in JSON format.

Return Value

Type: Object
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 null

Usage 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
ExceptionCondition
JsException The given JSON string object cannot be parsed.
See Also