[New-bugs-announce] [issue28984] json.dump + indent creates trailing extra spaces

Knut report at bugs.python.org
Thu Dec 15 18:11:18 EST 2016


New submission from Knut:

module json
python 2.7.12

json.dump(..., indent=4, sort_keys=True) gives me:

{
    "size": {
        "total": 19106,X
        "code": 18614,X
        "data": 492
    },X
    "next_item": 10
}


The "X" mark extra trailing space characters which are needless.

----------
components: Library (Lib)
messages: 283354
nosy: voxspox
priority: normal
severity: normal
status: open
title: json.dump + indent creates trailing extra spaces
type: resource usage
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28984>
_______________________________________


More information about the New-bugs-announce mailing list