NDJSON Stream
A newline-delimited JSON (NDJSON) stream of event records — for testing streaming JSON parsers.
{"id":1,"event":"page_view","path":"/"}
{"id":2,"event":"click","target":"download"}
{"id":3,"event":"page_view","path":"/about"}
{"id":4,"event":"search","query":"csv"}
Specifications
What is a .ndjson file?
NDJSON (Newline-Delimited JSON) is a streaming format where each newline-separated line is a standalone JSON object, functionally equivalent to JSON Lines. It enables incremental processing of large datasets and streaming APIs. Each record is parsed independently of the rest.
How to use this file
Use an example NDJSON to test streaming ingestion, chunked HTTP or API response parsing, and tools that process records incrementally without loading the full file.
Related files
- jsonFlat JSON ArrayA flat JSON array of ten simple objects — the baseline case for JSON parsing and mapping.
- jsonlJSON Lines (JSONL)A JSON Lines file with one object per line — for testing streaming/newline-delimited JSON parsers.
- jsonDeeply Nested JSONA deeply nested JSON document with objects inside arrays inside objects — for testing recursive parsing and path access.
- jsonIntentionally Invalid JSONAn intentionally invalid JSON file with a trailing comma and a missing closing brace — for testing parser error handling and messages. Not valid JSON by design.
- jsonJSON Schema (User)A draft-07 JSON Schema describing a user object — for testing schema validators and schema-aware tooling.
- csv10,000-Row CSVA CSV with 10,000 data rows — for testing streaming parsers, memory handling, and import performance.
Generated by generation/data_formats.py. Free for any use, no attribution required — license.