Use case · 19 files

Test JSON parsers

JSON parsers disagree on big numbers, on what counts as valid, and on how much memory a document may use. These files cover the values, structures and sizes that expose those differences, from a 592-byte object with every type to a 100 MB array.

Download all with curl
Download 19 files (292 MB)Shell
# 19 files, 292 MB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/data/json/sample-types.json
https://files.samplefiles.com/data/json/sample-orders-nested.json
https://files.samplefiles.com/data/json/sample-minified.json
https://files.samplefiles.com/edge-cases/corrupt/invalid.json
https://files.samplefiles.com/edge-cases/empty/zero-byte.json
https://files.samplefiles.com/edge-cases/empty/empty-array.json
https://files.samplefiles.com/edge-cases/empty/empty-object.json
https://files.samplefiles.com/data/json5/sample-config.json5
https://files.samplefiles.com/edge-cases/mislabeled/json-named.csv
https://files.samplefiles.com/data/ndjson/sample-1k-records.ndjson
https://files.samplefiles.com/data/ndjson/sample-100k-records.ndjson
https://files.samplefiles.com/data/jsonl/sample-1k-records.jsonl
https://files.samplefiles.com/data/jsonl/sample-chat-finetune.jsonl
https://files.samplefiles.com/data/log/app-json.log
https://files.samplefiles.com/data/json/sample-1mb.json
https://files.samplefiles.com/data/json/sample-10mb.json
https://files.samplefiles.com/data/json/sample-50mb.json
https://files.samplefiles.com/data/json/sample-100mb.json
https://files.samplefiles.com/data/ndjson/sample-100mb.ndjson
EOF

Types and tricky values

Unicode, escapes, exponents, a 2⁵³+1 integer that JavaScript cannot represent, null and empty containers, plus nested objects and arrays.

FileSizeDetailsDownload
JSON with every data typesample-types.json592 BDownload
JSON with nested objects and arrayssample-orders-nested.json86 KB100 rowsDownload
Minified JSON, 1,000 recordssample-minified.json284 KB1,000 rowsDownload

Invalid, empty and almost-JSON

Strict parsers must reject the invalid file and the zero-byte file, and accept the empty array and object. The JSON5 file is valid only to a JSON5 parser.

FileSizeDetailsDownload
Invalid JSONinvalid.json94 BDownload
Zero-byte .json filezero-byte.json0 BDownload
JSON empty arrayempty-array.json3 BDownload
JSON empty objectempty-object.json3 BDownload
JSON5 config filesample-config.json5466 BDownload
JSON file named .csvjson-named.csv35.8 KBDownload

NDJSON and JSON Lines

One record per line, for streaming parsers, log pipelines and fine-tuning datasets.

FileSizeDetailsDownload
NDJSON, 1,000 recordssample-1k-records.ndjson307 KB1,000 rowsDownload
NDJSON, 100,000 recordssample-100k-records.ndjson30.4 MB100,000 rowsDownload
JSON Lines, 1,000 recordssample-1k-records.jsonl307 KB1,000 rowsDownload
JSONL chat fine-tuning dataset (200 examples)sample-chat-finetune.jsonl42.1 KB200 rowsDownload
JSON (structured) log, 1,000 linesapp-json.log152 KB1,000 linesDownload

Large files

Valid JSON arrays sized just under 1, 10, 50 and 100 MB, for memory and streaming-parser tests.

FileSizeDetailsDownload
1 MB JSON filesample-1mb.json1023 KB3,282 rowsDownload
10 MB JSON filesample-10mb.json9.9 MB32,606 rowsDownload
50 MB JSON filesample-50mb.json49.9 MB162,472 rowsDownload
100 MB JSON filesample-100mb.json99.9 MB324,184 rowsDownload
100 MB NDJSON filesample-100mb.ndjson99.9 MB327,263 rowsDownload