import json


def read_json(filename_json):
    """
    Reads given json file (must have usual jiwoo's structure)

    Input:
    -----
    :param filename_json: string
        Path and name of a json file output of the CLIVAR PRP ENSO metrics package.

    Output:
    ------
    :return data: dictionary
        Dictionary output of the CLIVAR PRP ENSO metrics package, first level is models, second is members.
    """
    with open(filename_json) as ff:
        data = json.load(ff)
    ff.close()
    data = data["RESULTS"]["model"]
    return data