ParseJSON (Update)
The ParseJSON function can be used to replace the value of a specific item within an initialised JSON object.
To create a completely new item within the object, use the Add instruction.
Syntax
ParseJSON( InstructionType, Key, ValueType, Path, Item, NewValue );
Parameters
Parameter Name | Type | Description | Optional? | Default Value |
---|---|---|---|---|
InstructionType | Integer | Must be set to the integer 4. | 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 item, such as sunset. | No | n/a |
NewValue | String | The value to be assigned to the item. | No | n/a |
Output
If successful, the function will return a string consisting of the updated object data.