action:Set_JSON_Value
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| action:Set_JSON_Value [2019/06/24 06:06] – created peternlewis | action:Set_JSON_Value [2023/09/15 08:19] (current) – peternlewis | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| {{ set-json-value.png? | {{ set-json-value.png? | ||
| - | The action will take a specified JSON path, referencing a location within a variable which contains a JSON object, and set the value. | + | The action will take a specified |
| For example, with variable “J” containing `{ " | For example, with variable “J” containing `{ " | ||
| The value will be considered a JSON object if it starts with a `[` or `{` and ends with the matching closing bracket and optional white space. | The value will be considered a JSON object if it starts with a `[` or `{` and ends with the matching closing bracket and optional white space. | ||
| + | |||
| + | If the value is `%Delete%`, then the JSON key or array entry will be deleted (v11.0+). | ||
| ===== Action Options (Gear ⚙ Menu) ===== | ===== Action Options (Gear ⚙ Menu) ===== | ||
| Line 19: | Line 21: | ||
| * Process Nothing (process neither text tokens nor backslash characters) | * Process Nothing (process neither text tokens nor backslash characters) | ||
| - | You can select Pretty JSON result mode, which affects the format of the entire resulting variable value (See [[manual: | + | You can select Pretty JSON result mode, which affects the format of the entire resulting variable value (See the [[manual: |
| - | You can select Strict JSON result mode, which affects how the value field is interpreted - in Strict mode, strings will need to be quoted with double quotes and appropriately escaped, but you can also then set numeric values and tru/ | + | You can select Strict JSON result mode, which affects how the value field is interpreted - in Strict mode, strings will need to be quoted with double quotes and appropriately escaped, but you can also then set numeric values and tru/ |
| ===== See Also ===== | ===== See Also ===== | ||
| Line 29: | Line 31: | ||
| === Actions === | === Actions === | ||
| - | * [[action: | + | * [[action: |
| - | * [[action: | + | * [[action: |
| * [[: | * [[: | ||
| + | |||
| + | === Functions === | ||
| + | |||
| + | * [[function: | ||
| + | * [[function: | ||
| + | * [[: | ||
| === Tokens === | === Tokens === | ||
| - | * [[:Tokens |See all Tokens]] | + | * [[token: |
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[:Tokens|See all Tokens]] | ||
| + | |||
| + | === Collections === | ||
| + | |||
| + | * [[collection: | ||
| + | * [[: | ||
action/Set_JSON_Value.1561356404.txt.gz · Last modified: by peternlewis
