[issue21182] json.loads errors out on valid JSON

2014-04-09 Thread Ned Deily
Changes by Ned Deily : -- components: +Library (Lib) -IO resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue21182] json.loads errors out on valid JSON

2014-04-09 Thread akira
akira added the comment: You need to escape backslashes inside a Python string literal or use raw-string literals: >>> import json >>> json.loads(r'["[\"Residential | Furniture | Cabinets\",\"119.99\"]"]') [u'["Residential | Furniture | Cabinets","119.99"]'] If the backslashes are uninte

[issue21182] json.loads errors out on valid JSON

2014-04-08 Thread Kushal Das
Kushal Das added the comment: It is not a valid JSON. You may want to validate it against http://jsonlint.com/ What you have inside the string (single quotes) is the JSON representation but not the string representation which json.loads is supposed to parse. -- nosy: +kushaldas __

[issue21182] json.loads errors out on valid JSON

2014-04-08 Thread Yakov Keselman
New submission from Yakov Keselman: Run the following Python JSON parsing script on valid JSON: import json json.loads( '["[\"Residential | Furniture | Cabinets\",\"119.99\"]"]' ) Result: Traceback (most recent call last): File "", line 1, in File "C:\Python33\lib\json\__init__.py", line