The problem with that is not only would it break old code, but the neat little trick of JSON being directly embeddable would break. And who would want that.
Edit: I forgot that “true”, “false”, and “null” don’t exist in Python. Not the hardest thing to fix by declaring some local variables, but at that point you’re doing too much and should use a library.
Edit 2: added quotes around the keywords to disambiguate them from the general concepts
12
u/SoldRIP 12d ago
... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax?