import json


def load_json(fname):
    """ loads a json from a file
    
    Parameters
    ----------
    fname : str
        the path of the file to load
        
    Returns
    -------
    the python object corresponding to the json
    
    """
    with open(fname, "r") as f:
        obj = json.load(f)
    return obj