[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public

Conversation

Copy link
Contributor

wimglenn commented Dec 5, 2019

Added ability to pass through ensure_ascii options to json.dumps in the json.tool command-line interface.

Some motivation: https://stackoverflow.com/questions/52712674/how-to-use-json-tool-from-the-shell-to-validate-and-pretty-print-language-files

https://bugs.python.org/issue27413

methane changed the title bpo-27413: Add an option to json.tool to dump non-ASCII characters. bpo-27413: json.tool: Add --no-ensure-ascii option. Dec 5, 2019
Copy link
Member

methane commented Dec 5, 2019

Test is failing because stdout is not UTF-8 on Windows.
Please use a temporary file for output.

…on.dumps in the json.tool command-line-interface.
methane merged commit efefe25 into python:master Dec 6, 2019
wimglenn deleted the json_tool_again branch December 6, 2019 07:32
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants