ParseJSON (Add)
The ParseJSON function can be used to add a new item of data to an initialised JSON object.
Syntax
ParseJSON( InstructionType, Key, ValueType, Path, Item, NewValue );
Parameters
Parameter Name | Type | Description | Optional? | Default Value |
---|---|---|---|---|
InstructionType | Integer | Must be set to the integer 5. | No | n/a |
Key | String | The key of the intended JSON object. | No | n/a |
ValueType | Integer |
The new value's data type. Use one of the following:
|
No | n/a |
Path | String | The path of the intended item, such as results | No | n/a |
Item | String | The name of the new item, such as wakeup. | No | n/a |
NewValue | String | The value of the new item. | No | n/a |
Output
If successful, the function will return a string consisting of the updated object data.