def df_from_json(data, rename=True, **kwargs):
    parsed = None
    if isinstance(data, str):
        with open(data) as data_file:
            data = json.load(data_file)

    if isinstance(data, list):
        parsed = json_normalize(data)

    elif isinstance(data, dict):
        for k, v in iteritems(data):
            if isinstance(v, list):
                parsed = json_normalize(v)

    # try to rename the columns if configured to
    if rename and parsed is not None:
        parsed = denormalize_column_names(parsed)

    return parsed
Loads user data from service
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/utils.py/df_from_json--crossover with--dataset/ETHPy150Open omab/python-social-auth/social/backends/github.py/GithubOAuth2.user_data