Use cases
Newline Delimited JSON is used for data exchange, imports, exports, parser testing, and validation workflows. Encoding, delimiters, versions, and container structure often change implementation behavior.
Common detection mistakes
- The .ndjson / .jsonl extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
- Newline Delimited JSON can start with signatures such as 7B, but related containers and damaged files may require additional validation.
Security notes
Untrusted input is not safe just because the format was detected. Account for parser exceptions, large files, unexpected encodings, and external references.
Using samples
11 samples help test leading-byte detection, parser errors, upload limits, and download behavior.