# Load Dataset Fail for Custom Json Format

**URL:** <https://discuss.huggingface.co/t/load-dataset-fail-for-custom-json-format/30350>\
**Category:** Beginners\
**Created:** [January 24, 2023, 8:43pm UTC](https://discuss.huggingface.co/t/load-dataset-fail-for-custom-json-format/30350 "2023-01-24T20:43:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![merlinyx](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@merlinyx](https://discuss.huggingface.co/u/merlinyx)\
**Post date:** [June 20, 2023, 7:58pm UTC](https://discuss.huggingface.co/t/load-dataset-fail-for-custom-json-format/30350/4 "2023-06-20T19:58:33Z")

</div>

Hi, this is rather late but I also ran into this issue and realized that the JSON format should be

```auto
{ “A” : string, “B”: list of string, “C”: list of list of bool }
{ “A” : string, “B”: list of string, “C”: list of list of bool }
...
{ “A” : string, “B”: list of string, “C”: list of list of bool }

```

basically each dictionary’s JSON str is delimited with a newline character, instead of having all the dictionaries in a list when being dumped to a file.

---

_[View the full topic](https://discuss.huggingface.co/t/load-dataset-fail-for-custom-json-format/30350)._
