For real tho, json dump python defaults are ugly af.
Here’s my go-to setup:
```python
json.dumps(data, indent=2, ensure_ascii=False, separators=(',', ': '))
```
The `separators` tweak adds a space after colons, which makes it even cleaner.
Also, if you’re dumping to a file, `json.dump()` with the same params works great.
Here’s my go-to setup:
```python
json.dumps(data, indent=2, ensure_ascii=False, separators=(',', ': '))
```
The `separators` tweak adds a space after colons, which makes it even cleaner.
Also, if you’re dumping to a file, `json.dump()` with the same params works great.
