NDJSON to JSON
NDJSON — one JSON value per line — is how logs, streaming APIs, and bulk endpoints ship data. This collects non-empty lines into a single JSON array you can read or process at once, and reports the line number if one record is invalid.