from pathlib import Path
from typing import Dict
from typing import Any
import json


def load_json(path: Path) -> Dict[str, Any]:
    """Load a JSON file to create a dictionary."""
    with path.open() as f:
        return json.load(f)