← All tips

Python: `json.dumps(..., indent=2)` for readable JSON

pythonstdlib

Great for debugging and writing configs.

import json
print(json.dumps({'a': 1}, indent=2))