[issue20298] json library needs a non-strict option to decode single-quoted strings

2014-01-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy is correct. We're trying to stick close to the JSON spec. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue20298] json library needs a non-strict option to decode single-quoted strings

2014-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this is just not JSON. Try to use YAML parsers. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue20298] json library needs a non-strict option to decode single-quoted strings

2014-01-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti, pitrou, rhettinger versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-

[issue20298] json library needs a non-strict option to decode single-quoted strings

2014-01-18 Thread David Barnett
New submission from David Barnett: Many sloppy JSON APIs return data with poorly-encoded strings, either with single-quotes as delimiters: {'foo': 'bar'} or with no delimiters at all on keys: {foo: 'bar'} The json library is useless for making sense of this data, because all it will tell y