Skip to content

parseNdjson

parseNdjson(source): JsonValue[]

Defined in: packages/format-ndjson/src/parse.ts:13

Parses all lines in an NDJSON string, skipping blank lines.

A utility over NdjsonLineDecoder, not a second implementation of the grammar: the source is already in memory, so it bounds the decoder by its own length and reports the first bad line as a throw.

string

JsonValue[]