Do parameters of a JSON style object always need to be in quotes? Do parameters of a JSON style object always need to be in quotes? json json

Do parameters of a JSON style object always need to be in quotes?


In JavaScript, names in object literals do not need to be surrounded in quotes, unless they are illegal JavaScript names (e.g. they contain a special character like a dash, they are a reserved word, etc).

In the JSON data exchange format, all names must be surrounded by double quotes.