PhantomJSDriverService ToJson Method WebDriver
Serializes the service options to JSON to be used as a configuration file for PhantomJS.exe (via the --config argument).

Namespace: OpenQA.Selenium.PhantomJS
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public string ToJson()

Return Value

The JSON representation of the configured service options.
See Also