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.
JSON.kmmacros (2.7 KB)
updateJSON.kmmacros (2.7 KB)
JSON - getValueFromKey
JSON - getValueFromKey.kmmacros (2.4 KB)
JSON - add new key value pair