Quote names with
"“ is a lot simpler than “You may quote names with
' but you don’t have to, unless they contain certain characters (or combinations of characters that would make it a keyword) and
" may need to be quoted depending on what delimiter you selected.
Unquoted key name problem :
It turns out ECMA Script 3 has a whack reserved word policy. Reserved words must be quoted in the key position, which is really a nuisance. When I got around to formulizing this into a standard, I didn’t want to have to put all of the reserved words in the standard, because it would look really stupid.(
NOTE : These days you can even use reserve words without quotes, you only need quotes when you have some quotes or special character.