Read JSON from disk
Section: Files and paths
Read JSON from disk
python
python
import json
from pathlib import Path
data = json.loads(Path("config.json").read_text(encoding="utf-8"))Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Files and paths