Home Search

DriveWorks Pro 21
SppJsonLoad

Send Feedback

SppJsonLoad

Returns a string of JSON from the specified file, indents text if set to True.

Syntax

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.

Example

RuleResultMeaning
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:

SppJSONEscape

SppJSONToXml

SppJSONUnEscape