from __future__ import annotations import json from pathlib import Path from typing import Any def load_json(path: str | Path) -> Any: with Path(path).open("r", encoding="utf-8") as file: return json.load(file)