Nested JSON with every value type
A small configuration-style JSON document that uses every JSON value type, deep nesting, escaped characters, Unicode escapes, an empty object and an empty array.
Download
sample-nested-config.json
829 B829 bytes
Download JSON sampleDirect download. No sign-up and no waiting.
- Type
- application/json
- SHA-256
ec953b49ebd4b1f8be6e9710dbc938cb0e27d6d158e0f9d5fce4951fd7d63916- Direct URL
https://sampletestfiles.com/downloads/samples/sample-nested-config.json
Why test with this file
A compact conformance check for JSON parsers and schema validators.
| Root type | Object |
|---|---|
| Maximum depth | 6 |
| Value types used | string, number (integer, negative, decimal, exponent), boolean, null, array, object |
| Encoding | UTF-8 without BOM |
What to check
After your application has processed sample-nested-config.json, confirm that:
- null, false, 0 and the empty string remain four different values after parsing.
- The number 1.5e21 and the negative integer survive a round trip unchanged.
- Escaped characters and Unicode escapes decode to the right text.
How the file begins
The opening lines of sample-nested-config.json, exactly as they appear in the file.
{
"name": "sample-config",
"version": 3,
"enabled": true,
"deprecated": false,
"owner": null,
"ratio": 0.75,
"offset": -42,
"large": 1.5e+21,
"escaped": "Quote \" backslash \\ slash / tab \t newline \n",
"unicode": "café üñï 日本語",
"empty": {
"object": {},
"array": [],Preview
Shows the file contents.
Technical details
| File name | sample-nested-config.json |
|---|---|
| Format | JSON (JavaScript Object Notation) |
| Extension | .json |
| MIME type | application/json |
| Size | 829 bytes (829 B) |
| Kind | Text |
| SHA-256 | ec953b49ebd4b1f8be6e9710dbc938cb0e27d6d158e0f9d5fce4951fd7d63916 |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Data |
Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked
Download from the command line and verify
Fetch the file with curl, then compare its checksum with the SHA-256 value above.
curl -o sample-nested-config.json 'https://sampletestfiles.com/downloads/samples/sample-nested-config.json'
sha256sum sample-nested-config.json # Linux
shasum -a 256 sample-nested-config.json # macOSOn Windows, run Get-FileHash sample-nested-config.json -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.
About JSON
The standard data format of web APIs: objects, arrays, strings, numbers, booleans and null.
Where it fits
- File parser testing
Well-formed files and deliberate edge cases for testing code that reads CSV, JSON, XML, PDF and more.
- API testing
Payloads and attachments for testing REST endpoints that receive, return or transform files.