Guides

Import line-delimited JSON containing blank lines

Follow these steps using a local file and keep the original.

Import line-delimited JSON containing blank lines
Actual local tool workspace with a synthetic sample.

Prepare the example

Create disposable test input with the exact content below (UTF-8 text unless marked hex). For duplicate filenames, save the two files in separate folders.

records.ndjson
{"id":1}

{"id":2}

Create a file with {"id":1}, a blank line, then {"id":2}.

Run the workflow

  1. Open the related tool below and load the prepared file(s).
  2. Convert to a JSON array and confirm there are exactly two records.

Verified example result

This example was reproduced in Chrome on 2026-12-04 using FileTypeKit 0.9.0 and synthetic data. The expected result or expected refusal was checked; this does not establish support for every real file.

The downloaded output was checked against the expected properties below.

Example output
records.json
Observed size
44 bytes
SHA-256
7e9d0edf10280e8b86475c603eebbb7caac522bce2788a4510571925cf99ed97

This digest describes the tested output; other encoders or versions may produce different bytes. Verify the expected properties, not only the digest.

Limitations and what to verify

Non-empty lines must each be complete JSON values; malformed records are not ignored.

Open related tool