Problem with JSON dataset format
{'login': 'vikigenius', 'id': 12724810, 'node_id': 'MDQ6VXNlcjEyNzI0ODEw', 'avatar_url': 'https://avatars.githubusercontent.com/u/12724810?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/vikigenius', 'html_url': 'https://github.com/vikigenius', 'followers_url': 'https://api.github.com/users/vikigenius/followers', 'following_url': 'https://api.github.com/users/vikigenius/following{/other_user}', 'gists_url': 'https://api.github.com/users/vikigenius/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/vikigenius/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/vikigenius/subscriptions', 'organizations_url': 'https://api.github.com/users/vikigenius/orgs', 'repos_url': 'https://api.github.com/users/vikigenius/repos', 'events_url': 'https://api.github.com/users/vikigenius/events{/privacy}', 'received_events_url': 'https://api.github.com/users/vikigenius/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Currently the `json` dataset doesn't support this format unfortunately.
However you could load it with
```python
from datasets import Dataset
import pandas as pd

df = pd.read_json("path_to_local.json", orient="index")
dataset = Dataset.from_pandas(df)
``` or you can make a custom dataset script as explained in doc here: https://huggingface.co/docs/datasets/add_dataset.html
I have a local json dataset with the following form.

{
    'id01234': {'key1': value1, 'key2': value2, 'key3': value3},
    'id01235': {'key1': value1, 'key2': value2, 'key3': value3},
    .
    .
    .
    'id09999': {'key1': value1, 'key2': value2, 'key3': value3}
}
Note that instead of a list of records it's basically a dictionary of key value pairs with the keys being the record_ids and the values being the corresponding record.

Reading this with json:

```
data = datasets.load('json', data_files='path_to_local.json')
```
Throws an error and asks me to chose a field. What's the right way to handle this?
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/651/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}