Function parse_ndjson_bufreader

Source
pub fn parse_ndjson_bufreader<'a>(
    _args: &Cli,
    reader: impl BufRead + 'a,
    errors: &Errors<IndexedNDJSONError>,
) -> Box<dyn Iterator<Item = (String, Value)> + 'a>
Expand description

Indexes data from the bufreader, converts it to serde JSON Values and filters out data that does not parse as JSON to the errors container. Single threaded version of parse_ndjson_bufreader_par.

See also: parse_ndjson_bufreader_par, parse_ndjson_file, parse_ndjson_file_path & parse_ndjson_receiver