This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ggenellina
Recipients ggenellina, steven.daprano
Date 2009-01-27.01:05:48
SpamBayes Score 0.00025312026
Marked as misclassified No
Message-id <1233018351.52.0.794716492238.issue5067@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-27 01:05:52ggenellinasetrecipients: + ggenellina, steven.daprano
2009-01-27 01:05:51ggenellinasetmessageid: <1233018351.52.0.794716492238.issue5067@psf.upfronthosting.co.za>
2009-01-27 01:05:49ggenellinalinkissue5067 messages
2009-01-27 01:05:48ggenellinacreate