How do I use %JSONValue%

You may not have spotted it in the above example, but KM is creating variables named with your prefix followed by the key of each key/value pair in the JSON dictionary. That makes it a lot easier when you want to get multiple values from a dictionary, and a lot quicker than multiple "Set Variable to..." actions pulling individual %JSONValue%s.

Demo:

JSON demo.kmmacros (3.1 KB)

But yes, unnecessary overhead if you only want to get one value from the dictionary.

2 Likes