by ks2048 · 2y ago · 0 comments
I actually think an array would be better, ["foo","bar"] for "foo.bar". How many many bugs are introduced by people not escaping properly? It's more verbose, but judging by the rest of the standard, they don't seem to be emphasizing brevity.
An array of keys alleviates this issue entirely because any string element of the array can be used as a JSON object property name too.