from pathlib import Path
import json


def load_json(filepath: Path) -> dict:
    """load json file and return dict.

    Args:
        filepath (Path): filepath to json file.

    Returns:
        dict: dict loaded from json file.
    """
    with open(filepath, "r") as f:
        obj = json.load(f)
    return obj