Dan,
It is actually better practice to have the quotes around the name. This stops issues arising when reserved words or invalid characters are used.
From Douglas Crockford: JavaScript, The Good Parts.
A propertyâ s name can be any string, including the empty string. The quotes around a propertyâ s name in an object literal are optional if the name would be a legal JavaScript name and not a reserved word. So quotes are required around "first- name", but are optional around first_name.
Adrian
Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.