datasets cannot handle nested json if features is given.
MEMBER
Hi ! `Sequence` has a weird behavior for dictionaries (from tensorflow-datasets), use a regular list instead:

```python
ds = datasets.load_dataset('json', data_files="./temp.json", features=datasets.Features({
    'ref1': datasets.Value('string'),
    'ref2': datasets.Value('string'),
    'cuts': [{
        "cut1": datasets.Value("uint16"),
        "cut2": datasets.Value("uint16")
    }]
}))
```
2024-08-22T15:00:14Z
https://github.com/huggingface/datasets/issues/7116#issuecomment-2304894704
https://api.github.com/repos/huggingface/datasets/issues/7116
IC_kwDODunzps6JYebw
https://api.github.com/repos/huggingface/datasets/issues/comments/2304894704/reactions
2024-08-22T15:00:14Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2304894704
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
> Hi ! `Sequence` has a weird behavior for dictionaries (from tensorflow-datasets), use a regular list instead:
> 
> ```python
> ds = datasets.load_dataset('json', data_files="./temp.json", features=datasets.Features({
>     'ref1': datasets.Value('string'),
>     'ref2': datasets.Value('string'),
>     'cuts': [{
>         "cut1": datasets.Value("uint16"),
>         "cut2": datasets.Value("uint16")
>     }]
> }))
> ```
Thank you!

2024-09-03T10:17:46Z
https://github.com/huggingface/datasets/issues/7116#issuecomment-2326146599
https://api.github.com/repos/huggingface/datasets/issues/7116
IC_kwDODunzps6Kpi4n
https://api.github.com/repos/huggingface/datasets/issues/comments/2326146599/reactions
2024-09-03T10:17:46Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2326146599
https://avatars.githubusercontent.com/u/38550511?v=4
https://api.github.com/users/ljw20180420/events{/privacy}
https://api.github.com/users/ljw20180420/followers
https://api.github.com/users/ljw20180420/following{/other_user}
https://api.github.com/users/ljw20180420/gists{/gist_id}
https://github.com/ljw20180420
ljw20180420
MDQ6VXNlcjM4NTUwNTEx
https://api.github.com/users/ljw20180420/orgs
https://api.github.com/users/ljw20180420/received_events
https://api.github.com/users/ljw20180420/repos
https://api.github.com/users/ljw20180420/starred{/owner}{/repo}
https://api.github.com/users/ljw20180420/subscriptions
User
https://api.github.com/users/ljw20180420
public
NONE
It works.
2024-09-03T10:18:22Z
https://github.com/huggingface/datasets/issues/7116#issuecomment-2326147677
https://api.github.com/repos/huggingface/datasets/issues/7116
IC_kwDODunzps6KpjJd
https://api.github.com/repos/huggingface/datasets/issues/comments/2326147677/reactions
2024-09-03T10:18:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2326147677
https://avatars.githubusercontent.com/u/38550511?v=4
https://api.github.com/users/ljw20180420/events{/privacy}
https://api.github.com/users/ljw20180420/followers
https://api.github.com/users/ljw20180420/following{/other_user}
https://api.github.com/users/ljw20180420/gists{/gist_id}
https://github.com/ljw20180420
ljw20180420
MDQ6VXNlcjM4NTUwNTEx
https://api.github.com/users/ljw20180420/orgs
https://api.github.com/users/ljw20180420/received_events
https://api.github.com/users/ljw20180420/repos
https://api.github.com/users/ljw20180420/starred{/owner}{/repo}
https://api.github.com/users/ljw20180420/subscriptions
User
https://api.github.com/users/ljw20180420
public
### Describe the bug

I have a json named temp.json.
```json
{"ref1": "ABC", "ref2": "DEF", "cuts":[{"cut1": 3, "cut2": 5}]}
```
I want to load it.
```python
ds = datasets.load_dataset('json', data_files="./temp.json", features=datasets.Features({
    'ref1': datasets.Value('string'),
    'ref2': datasets.Value('string'),
    'cuts': datasets.Sequence({
        "cut1": datasets.Value("uint16"),
        "cut2": datasets.Value("uint16")
    })
}))
```
The above code does not work. However, I can load it without giving features.
```python
ds = datasets.load_dataset('json', data_files="./temp.json")
```
Is it possible to load integers as uint16 to save some memory?

### Steps to reproduce the bug

As in the bug description.

### Expected behavior

The data are loaded and integers are uint16.

### Environment info

Copy-and-paste the text below in your GitHub issue.

- `datasets` version: 2.21.0
- Platform: Linux-5.15.0-118-generic-x86_64-with-glibc2.35
- Python version: 3.11.9
- `huggingface_hub` version: 0.24.5
- PyArrow version: 17.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2024.5.0