Raise error for incorrect JSON serialization
CONTRIBUTOR
PTAL @lhoestq @albertvillanova 
2024-11-01T11:55:01Z
https://github.com/huggingface/datasets/pull/7273#issuecomment-2451755155
https://api.github.com/repos/huggingface/datasets/issues/7273
IC_kwDODunzps6SItCT
https://api.github.com/repos/huggingface/datasets/issues/comments/2451755155/reactions
2024-11-01T11:55:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2451755155
https://avatars.githubusercontent.com/u/20443618?v=4
https://api.github.com/users/varadhbhatnagar/events{/privacy}
https://api.github.com/users/varadhbhatnagar/followers
https://api.github.com/users/varadhbhatnagar/following{/other_user}
https://api.github.com/users/varadhbhatnagar/gists{/gist_id}
https://github.com/varadhbhatnagar
varadhbhatnagar
MDQ6VXNlcjIwNDQzNjE4
https://api.github.com/users/varadhbhatnagar/orgs
https://api.github.com/users/varadhbhatnagar/received_events
https://api.github.com/users/varadhbhatnagar/repos
https://api.github.com/users/varadhbhatnagar/starred{/owner}{/repo}
https://api.github.com/users/varadhbhatnagar/subscriptions
User
https://api.github.com/users/varadhbhatnagar
public
NONE
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7273). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
2024-11-18T10:56:01Z
https://github.com/huggingface/datasets/pull/7273#issuecomment-2482686735
https://api.github.com/repos/huggingface/datasets/issues/7273
IC_kwDODunzps6T-ssP
https://api.github.com/repos/huggingface/datasets/issues/comments/2482686735/reactions
2024-11-18T10:56:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2482686735
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
Raise error when `lines = False` and `batch_size < Dataset.num_rows` in `Dataset.to_json()`.

Issue: #7037 

Related PRs:
#7039 #7181 