Message173891
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]' |
|
Date |
User |
Action |
Args |
2012-10-26 21:25:12 | zach.mathew | set | recipients:
+ zach.mathew |
2012-10-26 21:25:12 | zach.mathew | set | messageid: <1351286712.61.0.639993947204.issue16333@psf.upfronthosting.co.za> |
2012-10-26 21:25:12 | zach.mathew | link | issue16333 messages |
2012-10-26 21:25:12 | zach.mathew | create | |
|