Closed bluppfisk closed 7 months ago
after a comma there should be a property name
the error message is correct
Whether it's correct is debatable. It's misleading at least. I'd alter it to "Property name missing or not enclosed in double quotes"
feel free to send a pr to cpython lol
given
test.json:
and
pre-commit run --files test.json
I get error:
test.json: Failed to json decode (Expecting property name enclosed in double quotes: line 4 column 1 (char 56))
While the error is the trailing comma, not an improperly enclosed property name.