User Tools

Site Tools


function:JSONVALUE

**This is an old revision of the document!**

JSONValue

The JSONVALUE function takes a JSON path and returns the numeric result.

JSONVALUE(jsonpath) is more or less equivalent to CALCULATE(%JSONValue%jsonpath%).

Example

If a Keyboard Maestro variable J contains the JSON object:

{"a":9, "b":"bravo", "c":null, "d":[1,"two",3]}

Then these would be the results:

Token Result
JSONVALUE(J.a) 9
JSONVALUE(J.d[1]) 11
JSONVALUE(J.d[3]) 33
JSONVALUE(J.d[1+2]) 33
JSONVALUE(J.d[0]) 3

See Also

See the JSON user manual section for more details on JSON.

Actions

Functions

Tokens

function/JSONVALUE.1561367035.txt.gz · Last modified: 2019/06/24 05:03 by peternlewis