3 ms·
"Except that in JSON, strings need to be surrounded by double quotes" This is a funny limitation, since JSON came from Javascript and {a:1} is perfectly legal
by raverbashing 15y ago
"Except that in JSON, strings need to be surrounded by double quotes"
This is a funny limitation, since JSON came from Javascript and {a:1} is perfectly legal in Javascript
"Why impose on human readers a syntactic requirement that only compilers/interpreters need?"
Well, for human readers this can be bad, but <> can be bothersome as well.
YAML could be a better choice (or something similar to JSON but with better syntax)
- mkmcdonald 15y ago> This is a funny limitation, since JSON came from Javascript and {a:1} is perfectly legal in Javascript. That's only legal when the key is not a reserved word. I never use that form, as it's error-prone.