[issue5067] Error msg from using wrong quotes in JSON is unhelpful

Cherniavsky Beni report at bugs.python.org
Sun Mar 1 01:52:47 CET 2009


Cherniavsky Beni <cben at users.sf.net> added the comment:

Perhaps it should not be an error at all?  The default should probably
stay strict to the spec, but IMHO the module should provide an optional
lenient parsing mode that also accepts single quotes.

Why support single quotes and not any other imaginable deviation from
the spec?  Because single quotes are the only way (AFAIK) in which
Python's repr() produces invalid JSON (from JSONable combinations of types).

----------
nosy: +cben

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5067>
_______________________________________


More information about the Python-bugs-list mailing list