function:JSONVALUE
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| function:JSONVALUE [2019/06/24 12:03] – peternlewis | function:JSONVALUE [2023/09/20 04:19] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== JSONVALUE ====== | + | ====== JSONVALUE |
| - | The // | + | The // |
| `JSONVALUE(jsonpath)` is more or less equivalent to `CALCULATE(%JSONValue%jsonpath%)`. | `JSONVALUE(jsonpath)` is more or less equivalent to `CALCULATE(%JSONValue%jsonpath%)`. | ||
| Line 9: | Line 9: | ||
| If a Keyboard Maestro variable `J` contains the JSON object: | If a Keyboard Maestro variable `J` contains the JSON object: | ||
| - | {" | + | {" |
| Then these would be the results: | Then these would be the results: | ||
| - | ^ Token ^ Result ^ | + | ^ Token ^ Result |
| - | | `JSONVALUE(J.a)` | `9` | | + | | `JSONVALUE(J.a)` | `9` | | |
| - | | `JSONVALUE(J.d[1])` | `11` | | + | | `JSONVALUE(J.d[1])` | `11` | | |
| - | | `JSONVALUE(J.d[3])` | `33` | | + | | `JSONVALUE(J.d[3])` | `33` | | |
| - | | `JSONVALUE(J.d[1+2])` | `33` | | + | | `JSONVALUE(J.d[1+2])` | `33` | entry 3 | |
| - | | `JSONVALUE(J.d[0])` | `3` | | + | | `JSONVALUE(J.d[0])` | `3` | the number of entries in the array | |
| + | | `JSONVALUE(J.d[-1])` | `33` | the last entry | | ||
| + | | `JSONVALUE(J.d[COUNT()])` | `33` | the last entry | | ||
| ===== See Also ===== | ===== See Also ===== | ||
| Line 33: | Line 35: | ||
| === Functions === | === Functions === | ||
| - | * [[function: | ||
| * [[: | * [[: | ||
| Line 42: | Line 43: | ||
| * [[token: | * [[token: | ||
| * [[: | * [[: | ||
| + | |||
| + | === Collections === | ||
| + | |||
| + | * [[collection: | ||
| + | * [[: | ||
function/JSONVALUE.1561377826.txt.gz · Last modified: by peternlewis
