Raymond Hettinger <[email protected]> added the comment:
Would this need be fulfilled by the *separators* option?
>>> from json import dumps
>>> query = dict(system='primary', action='load')
>>> print(dumps(query, separators=(',\n', ': ')))
{"system": "primary",
"action": "load"}
----------
nosy: +rhettinger
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34529>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com