token:JSONFromVariables
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| token:JSONFromVariables [2019/06/25 03:31] – peternlewis | token:JSONFromVariables [2025/01/13 02:51] (current) – peternlewis | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| The variables with names starting with the specified prefix (with the prefix removed) are used as field names for the resulting JSON object, and the variable values are the corresponding values. | The variables with names starting with the specified prefix (with the prefix removed) are used as field names for the resulting JSON object, and the variable values are the corresponding values. | ||
| + | |||
| + | (!) Note: JSON keys are case sensitive, but Keyboard Maestro variables are case insensitive. The `prefix` in this token is also case sensitive. Further, there may be more than one variable with the same resulting key, for example with a prefix of `Local`, both `Local Var` and `LocalVar` will result in the same `Var` key, only one of which will appear in the result with no way to know which it is. | ||
| + | |||
| The token has Pretty and Compact variants (by appending either to the token name), as well as a Strict variant (appending Strict) (for example `%JSONFromVariablesStrictCompact%dictionary%`). | The token has Pretty and Compact variants (by appending either to the token name), as well as a Strict variant (appending Strict) (for example `%JSONFromVariablesStrictCompact%dictionary%`). | ||
| Line 29: | Line 32: | ||
| * [[function: | * [[function: | ||
| + | * [[function: | ||
| * [[: | * [[: | ||
token/JSONFromVariables.1561433496.txt.gz · Last modified: by peternlewis
