Author serhiy.storchaka
Recipients bob.ippolito, cvrebert, ezio.melotti, musically_ut, pitrou, rhettinger, serhiy.storchaka
Date 2014-11-21.21:17:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416604679.25.0.248893331862.issue19361@psf.upfronthosting.co.za>
In-reply-to
Content
While we here may be change error messages?

The only error which contains end position is "Extra data". And it doesn't look clean to me why end position should be mentioned at all (it is always len(data) here). I suggest to drop it, this will make error message cleaner and JSONDecodeError simpler.

May be mention line and column in error message only if JSON data is multiline? Most machine generated data has one line only. Instead of "Expecting ',' delimiter: line 1 column 123 (char 124)" I suggest "Expecting ',' delimiter at position 124". Same as in re.error.
History
Date User Action Args
2014-11-21 21:17:59serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, bob.ippolito, pitrou, ezio.melotti, cvrebert, musically_ut
2014-11-21 21:17:59serhiy.storchakasetmessageid: <1416604679.25.0.248893331862.issue19361@psf.upfronthosting.co.za>
2014-11-21 21:17:59serhiy.storchakalinkissue19361 messages
2014-11-21 21:17:58serhiy.storchakacreate