Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-27413: json.tool: Add --no-ensure-ascii option. #17472

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

wimglenn
Copy link
Contributor

@wimglenn 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 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
@methane
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 methane merged commit efefe25 into python:master Dec 6, 2019
@wimglenn 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