Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Commands
Python
Languages
Python Commands
General-purpose language and its CPython interpreter.
All Python pages
python -m json.tool: pretty-print and validate JSON
Pretty-print or validate JSON from the shell with python -m json.tool (or python -m json on 3.14+). Sort keys, set indent, compact output and read JSON Lines.
Esc