In a Keyboard Maestro IF action, you can branch on whether a given key is found in a JSON dictionary (also known as a JSON key-value Object).
Note that in the chevron menu to the left of the JavaScript script test, we specify:
Modern Syntax(to provide thekmvar.KMVariableNamenotation), and- which KM variable names we want to be able to reference in this way (checking items in list)
If JSON dictionary contains a given key ....kmmacros (9.2 KB)

