{name: "value"}
It's a slippery slope ... pretty soon it's hard to write a JSON parser, and there are more bugs
The trailing comma one is trivial, I'll grant that
The 123_456 syntax comes close to that, but is much less impactful.
None of those will make the language hard to parse.
print("{") for elem in list: print('"key": "value",') print("}")
print("{") contents = "" for elem in list: contents += '"key": "value",' print(contents[:-1]) print("}")
It's a slippery slope ... pretty soon it's hard to write a JSON parser, and there are more bugs
The trailing comma one is trivial, I'll grant that