Skip to main content

read_json_line

Function read_json_line 

Source
async fn read_json_line<R: AsyncBufRead + Unpin>(
    r: &mut R,
) -> Result<Option<Value>>
Expand description

Reads lines until one parses as JSON (skipping blank lines or stray non-JSON output, e.g. a server printing a startup banner to stdout), or the stream closes.