Returns a string of JSON from the specified file, indents text if set to True.
SppJsonLoad([File Path],[Indent Text])
Where:
File Path is the complete file path to the .json file.
Indent Text is True to indent the returned XML text.
| Rule | Result | Meaning |
|---|---|---|
| SppJsonLoad("D:\DriveWorks\Files\URLs.json",True) |
{
"?xml": {
"@version": "1.0",
"@standalone": "no"
},
"root": {
"company": [
{
"@id": "1",
"name": "Google",
"url": "http://www.google.com"
},
{
"@id": "2",
"name": "Yahoo",
"url": "http://www.yahoo.com"
}
]
}
} | Will load the specified JSON file with it indented. |
See also: