import json


def load_json(fname):
    """Loads a json file to memory.

    Parameters
    ----------
    fname : str
        File name + path.

    Returns
    -------
    dict/list
        Data structure of the input json file.

    """
    assert fname, 'Must input a valid file name.'
    return json.load(open(fname, mode='r'))