JSON file
[Desktop Automation]
The JSON file object represents a JSON file.
Properties
None.
Methods
Name | Syntax | Description |
---|---|---|
addBoolean | Jsonfile:addBoolean(name:String, value:Boolean); | Adds a Boolean value to a name-value pair. |
addinteger | Jsonfile:addinteger(name:String, value:Integer); | Adds an Integer value to a name-value pair. |
addfloat | Jsonfile:addfloat(name:String, value:Float); | Adds a Float value to a name-value pair. |
addstring | Jsonfile:addstring(name:String, value:String); | Adds a String value to a name-value pair. |
childexists | Boolean = Jsonfile:childexists(name:String); | Returns TRUE when in the Jsonfile a name-value pair exists with the name 'name'. |
getBoolean | Boolean = Jsonfile:getBoolean(name:String); | Returns the Boolean value from the name-value pair of name |
getinteger | Integer = Jsonfile:getinteger(name:String, value:Integer); | Returns the integer value from the name-value pair of name |
getfloat | Float = Jsonfile:getfloat(name:String, value:Float); | Returns the float value from the name-value pair of name |
getstring | String = Jsonfile:getstring(name:String, value:String); | Returns the string value from the name-value pair of name |
loadfromstring | Jsonfile: loadfromstring (string:String); | Loads Jsonfile from 'string' |
savetofile | Jsonfile:savetofile(filename:String); | Saves the Jsonfile under the 'filename' name. |
writetostring | string:String = Jsonfile: writetostring (); | Returns the Jsonfile as string. |