action:Set_Variables_to_JSON
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| action:Set_Variables_to_JSON [2019/06/24 04:56] – created peternlewis | action:Set_Variables_to_JSON [2019/06/25 03:38] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Set Variables to JSON ====== | ====== Set Variables to JSON ====== | ||
| - | The //Set Variables to JSON// action lets you set a set of variables from a [[manual: | + | The //Set Variables to JSON// |
| + | {{ set-variables-to-json.png? | ||
| + | |||
| + | The action will take a specified prefix and a JSON container (dictionary or array) and will set variables based on the prefix and the field names or array indices to the corresponding values. | ||
| + | |||
| + | For example, with prefix `JSON` and JSON dictionary `{ " | ||
| + | |||
| + | The prefix should either be empty, or be a valid variable name with optional trailing space. | ||
| + | |||
| + | ===== Action Options (Gear ⚙ Menu) ===== | ||
| + | |||
| + | You can control what text processing happens in the JSON field by selecting one of these options from the Gear Menu: | ||
| + | |||
| + | * Process Text Normally (process text tokens and backslash characters) | ||
| + | * Process Text Tokens Only (process text tokens but not backslash characters) | ||
| + | * Process Nothing (process neither text tokens nor backslash characters) | ||
| + | |||
| + | You can select Pretty JSON result mode, which affects the variable values for entries that are themselves JSON containers (See the [[manual: | ||
| + | |||
| + | You can select Strict JSON result mode, which affects the variable values for entries that are plain strings (See the [[manual: | ||
| + | |||
| + | And you can optionally have all the non-matching variables with the specified prefix removed (as long as the prefix is not empty). | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | See the [[manual: | ||
| + | |||
| + | === Actions === | ||
| + | |||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[: | ||
| + | |||
| + | === Functions === | ||
| + | |||
| + | * [[function: | ||
| + | * [[function: | ||
| + | * [[: | ||
| + | |||
| + | === Tokens === | ||
| + | |||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[: | ||
| + | |||
| + | === Collections === | ||
| + | |||
| + | * [[collection: | ||
| + | * [[: | ||
action/Set_Variables_to_JSON.1561352209.txt.gz · Last modified: by peternlewis
