The ToJSON method returns a JSON string that represents the BrowserHawk properties of the ExtendedBrowserObj class and its associated values for the current request. It also supports the ability to add your own data names and values. This JSON can then be used for various purposes, such as storing it to a database or using it as a JSON data source.
Tip: See the toJSON-toXML.aspx sample included with BrowserHawk for more information.
Syntax:
extBrow.ToJSON()
Returns a JSON representation of the tested ExtendedBrowserObj properties and its associated values. A "BrowserHawk" element includes metadata about the capture including the BrowserHawk version, license level installed, edition, BDD version, and timestamp in the ISO 8601 format.
extBrow.ToJSON(System.Collections.Hashtable)
Returns a JSON representation of the tested ExtendedBrowserObj properties and its associated values. A "BrowserHawk" element includes metadata about the capture including the BrowserHawk version, license level installed, edition, BDD version, and timestamp in the ISO 8601 format. If you pass a Hashtable object it will add a "UserProperties" attribute with your own data names and values, for example a user's login ID or department.
Seel Also:
BrowserObj ToJSON Method (.NET)