import json


def load_json(fname: str):
    """
    Loads an object from a JSON file.

    Args:
        fname: the name of the file to load from.

    Returns:
        the JSON object.

    """

    return json.load(open(fname, 'r'))