Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

It's even more puzzling since those quotes are not required in JavaScript...


view as:

JSON was created as the lowest common denominator between multiple ancient javascript engines. At one time, at least one browser couldn't handle keywords being used as unquoted object keys, so JSON just has all keys quoted for simplicity. It's the same deal with trailing commas.

Legal | privacy