ndjsonRecords

fnauto ndjsonRecords(R)(R chunks, NdjsonPolicy policy = NdjsonPolicy.init) if (isInputRange!R && isNdjsonChunk!(ElementType!R))

Iterate raw NDJSON records from a range of chunks.

Parameters

chunksInput chunks (for example File.byChunk(64 * 1024)).
policyReading policy.

Returns

An NdjsonRecordRange over chunks.
fnauto ndjsonRecords(const(char)[] text, NdjsonPolicy policy = NdjsonPolicy.init)

Iterate raw NDJSON records from in-memory text without copying.

Parameters

textNDJSON text.
policyReading policy.

Returns

An NdjsonRecordRange whose record slices alias text.