From 3f84daaeadddb0e473b9c35e8356886c405dc73f Mon Sep 17 00:00:00 2001 From: Abdulsalaam Noibi Date: Sun, 15 Jun 2025 17:04:47 +0100 Subject: [PATCH] python-m-json.tool: add page (#16830) Co-authored-by: Wiktor Perskawiec Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/python-m-json.tool.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pages/common/python-m-json.tool.md diff --git a/pages/common/python-m-json.tool.md b/pages/common/python-m-json.tool.md new file mode 100644 index 0000000000..449e99670d --- /dev/null +++ b/pages/common/python-m-json.tool.md @@ -0,0 +1,13 @@ +# python -m json.tool + +> Validate and pretty-print JSON data. +> Part of Python's standard library. +> More information: . + +- Pretty-print JSON from a file: + +`python -m json.tool {{path/to/file.json}}` + +- Validate and pretty-print JSON from standard input: + +`echo '{{{"key": "value"}}}' | python -m json.tool`