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 steven.daprano
Recipients steven.daprano
Date 2009-01-26.06:24:30
SpamBayes Score 4.9415597e-05
Marked as misclassified No
Message-id <>
Using the wrong sort of quotes in json gives unhelpful error messages:

>>> json.loads("{'test':'test'}")
Traceback (most recent call last):
ValueError: Expecting property name: line 1 column 1 (char 1)

Unless you know that strings in JSON must be delimited with 
double-quotes and not single (a very surprising fact to those used to 
Python) this error message is perplexing. I suggest something like:

Single-quoted strings are invalid property names: line 1 column 1 
(char 1)


Parse error, invalid char: line 1, column 1 (char 1)
Date User Action Args
2009-01-26 06:24:33steven.dapranosetrecipients: + steven.daprano
2009-01-26 06:24:33steven.dapranosetmessageid: <>
2009-01-26 06:24:32steven.dapranolinkissue5067 messages
2009-01-26 06:24:30steven.dapranocreate