Gabriel Genellina <[email protected]> added the comment:
This patch provides a better error message for this case::
json.loads("""{'test': "test"}""")
but still doesn't help in this one::
json.loads("""{"test": 'test'}""")
'test' looks like garbage to JSON (it *is* garbage!), exactly the same
as::
json.loads("""{"test": @?&%%}""")
so it's hard to provide a better message when the parser expects a
generic object.
----------
nosy: +gagenellina
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5067>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com