1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 13:15:24 +02:00

python-m-json.tool: add page (#16830)

Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
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>
This commit is contained in:
Abdulsalaam Noibi 2025-06-15 17:04:47 +01:00 committed by GitHub
parent 2fbbd55ea4
commit 3f84daaead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,13 @@
# python -m json.tool
> Validate and pretty-print JSON data.
> Part of Python's standard library.
> More information: <https://docs.python.org/library/json.html#module-json.tool>.
- 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`