Test filesStructured data › deeply-nested-100000.json

Sample JSON file

A single value wrapped in 100,000 levels of nested arrays. Only ~200 KB on disk.

↓ Download deeply-nested-100000.json
Filenamedeeply-nested-100000.json
FormatJSON
Size195 KB (200,002 bytes)
MIME typeapplication/json
SHA-2568d7bd09c0573c0c4d854b55795e2c3f1a781c2d4f2901de332a5cb8bab350e42
What this file catchesRecursive-descent parsers that blow the stack. Note that the two most common runtimes do NOT fail here: V8 JSON.parse and CPython's C scanner are both iterative and accept 1M levels. What this does catch is recursive implementations - Go encoding/json before its depth cap, many Ruby and PHP libraries, pure-Python fallback scanners, and hand-rolled parsers. The property worth asserting is that your service returns a 400 with a depth-limit message rather than either a 500 or a successful parse of an absurd document.

Download & verify

curl -fsSL -o "deeply-nested-100000.json" "https://files.hexaqa.com/json/deeply-nested-100000.json"
curl -fsSL "https://files.hexaqa.com/json/deeply-nested-100000.json" | sha256sum # expect: 8d7bd09c0573c0c4d854b55795e2c3f1a781c2d4f2901de332a5cb8bab350e42

More structured data test files

1million-rows.csvbom-and-semicolons.csvformula-injection.csvquoting-nightmare.csvragged-rows.csvvalid-simple.csvlarge-array-100mb.jsonmalformed-trailing-comma.json

← All Structured data files