Hey,
I built 3 subroutines for handling typical JSONS on a single JSON object.
The top macro is an example of how you'd could use it
For it to work, you'd have to download the three subroutines below.
Hope you find these helpful.
UpdateJSON will only update values for keys that exists. To create a new key, use add new key value pair and then you can update that with UpdateJSON.
BTW, I just noticed that the javascript box on each subroutines is titled "Copy to Clipboard". Yeah it doesnt copy to clipboard. It just the name of my previously used Javascript action.
Your welcome.
Ben
JSON.kmmacros (2.7 KB)
updateJSON
updateJSON.kmmacros (2.7 KB)
JSON - getValueFromKey
JSON - getValueFromKey.kmmacros (2.4 KB)
JSON - add new key value pair