Data structures in JSON are based on key / value pairs. The key is a string, the value can be a numerical value, a boolean value (true or false) or an object.
An JSON object is a set of key / value pairs which starts with "{" and ends with "}".
Example: file name declares as chromesettings.json
{
"capabilities":
[
{
"platform": "WINDOWS",
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
],
"configuration":
{
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 5,
"port": 5556,
"host": 192.18.0.5,
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": 192.18.0.5
}
}
Lists are one or more values surrounded by [] and separated by ",".
No comments:
Post a Comment