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 sample

Direct 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 typeObject
Maximum depth6
Value types usedstring, number (integer, negative, decimal, exponent), boolean, null, array, object
EncodingUTF-8 without BOM

What to check

After your application has processed sample-nested-config.json, confirm that:

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 namesample-nested-config.json
FormatJSON (JavaScript Object Notation)
Extension.json
MIME typeapplication/json
Size829 bytes (829 B)
KindText
SHA-256ec953b49ebd4b1f8be6e9710dbc938cb0e27d6d158e0f9d5fce4951fd7d63916
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewAvailable on this page
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryData

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 # macOS

On 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.

JSON format reference

Where it fits

Related files

All curated sample files