Download a sample nested JSON file
Choose the data and the size, then download. Every file is valid JSON with deeply nested records, made on your device.
- Valid JSON
- 8 levels deep
- 100 KB to 1 GB
- Nothing is uploaded
Download JSON with deep nesting, from 100 KB to 1 GB. Each record is an organisation with settings, departments, teams, team leads and members, so values sit up to 8 levels below the record, inside objects and lists. Use it to test code that flattens JSON, infers a schema or follows paths. The page starts on nested data, and the other data and formats are one click away. To see the structure, open a file in the Large JSON Viewer. To flatten it into columns, try JSON to CSV.
What people use these files for
- Test flattening
Check how your JSON to CSV or JSON to table code names columns such as settings.notifications.email.enabled.
- Infer a schema
Generate TypeScript types or a JSON Schema and see how it handles lists of objects inside lists.
- Practise paths
Write JSONPath, jq or JMESPath queries that reach into departments, teams and members.
- Test a parser
Check recursion depth and memory use on files of hundreds of megabytes.
Need the paths to the values? The JSON Path Finder gives the path of anything you click.
How to get a sample nested JSON file
- Choose what the file holds: orders, customers, products, blog posts, users, log events, nested data or Unicode text.
- Choose a size from 100 KB to 1 GB, or type a custom size. The file holds whole records and stays within it.
- Click Generate and download, or Open in GigaJSON instead to look inside it.
Private, and made for big files
This tool runs in your browser, in a background worker: the file is made on your computer and never uploaded, and nothing is kept after you leave. Files up to 1 GB are written in pieces, so the page keeps responding. Already loaded features keep working if your connection drops. Loading another tool or jq for the first time needs a connection. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.
Sample nested JSON questions
How deep is the nesting?
A value such as departments[0].teams[0].lead.contact.phone.number is 8 levels below its record. Settings go 5 levels deep (settings.notifications.push.quiet_hours.from). In the file, the records sit in a list under "nested".
What does a record hold?
An organisation: an id and name, settings, 1 to 3 departments with a budget, 1 or 2 teams each with a lead and their contact details, 1 to 3 members with a role and skills, and who created it when.
Can I get it as CSV or XML?
Yes. Pick another format below the choices, and the nested data comes along. In CSV, objects become dotted columns and lists are written as JSON text in their cell. In XML, lists become repeated elements.
Is anything uploaded?
No. The file is made in your browser and saved from there. Nothing is kept after you leave.
All tools
- JSON FormatterIndent with 2 or 4 spaces, sort keys
- JSON ValidatorLine and column of the first error
- JSON MinifierRemove whitespace, see the bytes saved
- JSON RepairFixes quotes, commas, comments, AI output
- JSON Schema GeneratorA JSON Schema from examples
- JSON Schema ValidatorCheck JSON against a schema
- JSON Token CounterCount tokens, select data, compare JSON and TOON
- JSON EditorTree and code editing, undo and history
- Large JSON ViewerTree, table and search for huge files
- JSON Lines ViewerJSONL and NDJSON logs as a table
- JSON Log ViewerCount and filter JSON Lines logs
- Large CSV ViewerCSV files too big for Excel, up to 1 GB
- JSON VisualizerThe data as a graph, PNG and SVG export
- JSON DiffChanges between two documents
- JSON Path FinderClick a value, copy its path
- JSONPath TesterJSONPath, JMESPath and jq, live
- JMESPath PlaygroundJMESPath, for AWS CLI queries too
- jq PlaygroundReal jq in your browser
- JSON to CSVNested objects become dotted columns
- JSON to ExcelAn .xlsx sheet, numbers kept as numbers
- CSV to JSONDelimiters detected, 007 stays 007
- JSON to XML@keys become attributes
- XML to JSONRSS feeds, sitemaps, SOAP responses
- JSON to YAMLReadable YAML, ambiguous strings quoted
- YAML to JSONAnchors and multiple documents
- JSON Lines to JSONNDJSON or JSONL into one array
- JSON to JSON LinesA JSON array as one record per line
- JSON to TOONConvert JSON to TOON, with token counts
- JSON to MermaidA flowchart or class diagram, drawn
- JSON SplitterCut a big file into parts, or sample it
- JSON to TypeScriptInterfaces inferred from your data
- JSON to GoGo structs with json tags
- JSON to RustRust structs that derive serde's Serialize and Deserialize
- JSON to PythonPython dataclasses with type hints
- JSON to JavaJava classes with getters and setters
- JSON to C#C# classes with System.Text.Json attributes
- JSON to KotlinKotlin data classes
- JSON to SwiftSwift structs that conform to Codable, with CodingKeys
- JSON to DartDart classes with fromJson and toJson
- JSON to ZodZod schemas with TypeScript types inferred from them
- JWT DecoderHeader, payload and expiry, locally
- JSON EscapeText to a JSON string and back
- Sample JSON FilesDownload test JSON, 100 KB to 1 GB
- Sample JSON Lines FilesDownload test NDJSON, one record per line
- Sample CSV FilesDownload test CSV, 100 KB to 1 GB
- Sample XML FilesDownload test XML, 100 KB to 1 GB
- Sample GeoJSON FilesPoints, lines and polygons, up to 1 GB
- Sample Nested JSONRecords 8 levels deep, up to 1 GB
- Sample Unicode JSON13 scripts, emoji and escapes
- Sample API ResponsesJSON:API, HAL, GraphQL, pages, errors
- Large JSON File GeneratorTest data from 100 KB to 1 GB