[New-bugs-announce] [issue37982] Add a --minify argument to json.tool

Brad Solomon report at bugs.python.org
Thu Aug 29 15:17:07 EDT 2019


New submission from Brad Solomon <brad.solomon.1124 at gmail.com>:

I propose adding a command line `--minify` flag to the json/tool.py module. 

This flag, if specified, uses `indent=None` and `separators=(',', ':')` to eliminate indent and separator whitespace in the output.

Minifying JSON (as is also done frequently with JS, CSS, and sometimes HTML) is common practice, and would be useful to have as a command-line tool rather than a user needing to use an online resource to do so.

----------
components: IO
messages: 350817
nosy: bsolomon1124
priority: normal
severity: normal
status: open
title: Add a --minify argument to json.tool
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37982>
_______________________________________


More information about the New-bugs-announce mailing list