def json_load(path, encoding='utf-8', **kwargs):
    if path.split(os.path.extsep)[-1] == 'gz':
        f = gzip.open(path)
        s = f.read().decode(encoding)
    else:
        f = open(path)
        s = f.read()

    data = json.loads(s)

    f.close()

    return data
Return data of a json file
dataset/ETHPy150Open blaze/odo/odo/backends/json.py/json_load