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`