Skip to main content

parse_ndjson

Function parse_ndjson 

Source
pub fn parse_ndjson(body: Option<&str>) -> ParsedNdjson
Expand description

Parse an NDJSON body, keeping everything before the first unreadable line.

A process killed mid-write leaves one partial line. Everything before it is still true, so the file is readable up to that point.