3 ms·
"JSON (JavaScript Object Notation) is a lightweight data-interchange format." So says JSON.org for as long as anyone can remember. Why is anyone caring about
by beardyw 5y ago
"JSON (JavaScript Object Notation) is a lightweight data-interchange format."
So says JSON.org for as long as anyone can remember.
Why is anyone caring about using single or double quotes, or wanting trailing commas? It solves no problems. It seems to me the only answer is it's for manually created JSON. That is, all of this is for people whose only exposure to JSON is doing some config in vscode. It adds nothing else.
Call it JSON-CONFIG and leave well enough alone.
- SigmundA 5y agoKeep going, next sentence from JSON.org: "It is easy for humans to read and write. It is easy for machines to parse and generate. " Non-quoted keys is easier to read and write by humans, trailing commas are easier for a machine to write, single quotes can make it easier for a human to read or write. Comments help humans read and write. I remember when it was javascript object notation and that stuff was allowed because thats what javascript allows and felt simple and effective for both human and machine, then it became strict json, what a step backwards.