def load(fp, **kwargs):
    _load_arg_defaults(kwargs)
    if not PY2:
        fp = _wrap_reader_for_text(fp, kwargs.pop('encoding', None) or 'utf-8')
    return _json.load(fp, **kwargs)
Like :func:`loads` but reads from a file object.
dataset/ETHPy150Open pallets/flask/flask/json.py/load