Author zach.mathew
Recipients zach.mathew
Date 2012-10-26.21:25:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351286712.61.0.639993947204.issue16333@psf.upfronthosting.co.za>
In-reply-to
Content
When using the indent option in json.JSONEncoder, extra trailing whitespace (preceding the newline) is added to list and dict items.

For example:

>>> import json
>>> json.dumps(['foo', 'bar'], indent=1)
'[\n "foo", \n "bar"\n]'

Notice the blank space between "foo", and \n

EXPECTED OUTPUT:

'[\n "foo",\n "bar"\n]'
History
Date User Action Args
2012-10-26 21:25:12zach.mathewsetrecipients: + zach.mathew
2012-10-26 21:25:12zach.mathewsetmessageid: <1351286712.61.0.639993947204.issue16333@psf.upfronthosting.co.za>
2012-10-26 21:25:12zach.mathewlinkissue16333 messages
2012-10-26 21:25:12zach.mathewcreate