Test files › Structured 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| Filename | deeply-nested-100000.json |
| Format | JSON |
| Size | 195 KB (200,002 bytes) |
| MIME type | application/json |
| SHA-256 | 8d7bd09c0573c0c4d854b55795e2c3f1a781c2d4f2901de332a5cb8bab350e42 |
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