Unable to convert certain keywords in record to JSON I am using JSON Helper to convert record to JSON. I have run into difficulty that using certain words inside the record produces empty JSON. As you can see from the screenshot, first two variables (test1 and test2) silently fail and produce empty JSON. Here's source to the script in question - link. My question is simple - why test1 and test2 produce empty JSON?

Ps. I am using these names as a part of 3rd party API which I have no control of (including naming conventions for variables) - link.
data and id are both keywords within the AppleScript language.

It may be possible to quote these words to avoid their being interpreted as special cases. Try using the pipe character or double angle brackets/chevrons to wrap these keys.