JsonSet - script and chart function
JsonSet() modifies a string containing JSON (JavaScript Object Notation) data. It can set or insert a JSON value with the new location specified by the path. The data must be valid JSON but can contain extra spaces or newlines.
Information noteYou can add any number of name-value pairs with JsonSet.
Syntax:
value JsonSet(json, path, value)
Return data type: dual
Argument | Description |
---|---|
json | String containing JSON data. |
path |
The path must be specified according to RFC 6901. This allows buildup of properties inside JSON data without using complex substring or index functions and concatenation. |
value | The new string value in JSON format. |
See also: