import json


def load_json(path: str) -> object:
    """
    Opens a JSON file and returns a dictionary.
    Parameters
    ----------
    path : Path to a JSON file

    Returns
    -------
    The dictionary representation of the file
    """
    with open(path, "r") as fp:
        return json.load(fp)