On Thu, Apr 5, 2012 at 9:06 PM, Duncan Booth
<[email protected]> wrote:
> Steven D'Aprano <[email protected]> wrote:
>
>> JSON expects double-quote marks, not single:
>>     v = json.loads("{'test':'test'}")  fails
>>     v = json.loads('{"test":"test"}')  succeeds
>>
>
> You mean JSON expects a string with valid JSON?
> Quelle surprise.

The surprise is between JSON and JavaScript (the latter does accept
single quotes), and Python is correctly implementing the JSON spec.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to