import json


def load_json(fname: str) -> object:
    """Loads a json file and returns the encoded object.

    Args:
        fname (str): Path to json file.

    Returns:
        Any: Object encoded in json file.
    """    
    with open(fname, 'r') as fobj:
        return json.loads(fobj.read())