◐ Shell
clean mode source ↗

bpo-27413: json.tool: Add `--no-ensure-ascii` option. by wimglenn · Pull Request #17472 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@wimglenn

@wimglenn wimglenn commented

Dec 5, 2019

edited by bedevere-bot

Loading

Copy link Copy Markdown

Contributor

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

methane commented

Dec 5, 2019

edited

Loading

Copy link Copy Markdown

Member

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

Reviewers

@methane methane methane approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@wimglenn @methane @the-knights-who-say-ni @bedevere-bot