When executing code similar to the following:
The keys in the JSON data will automatically convert from strings to identifier names. I am currently sending this data to a Firebase Realtime Database, but Firebase is flagging the JSON as invalid (since keys should be enclosed in double quotes). Is there a way to ensure that JSON keys remain in double quotes, especially since most JavaScript compilers strip them out?