Gabriel Genellina <gagsl-...@yahoo.com.ar> 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 <rep...@bugs.python.org> <http://bugs.python.org/issue5067> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com