Skip to main content

stringify_ndjson_line

Function stringify_ndjson_line 

Source
pub fn stringify_ndjson_line(value: &Value, compact: bool) -> String
Expand description

Stringify an object to NDJSON line

§Arguments

  • value - Value to stringify
  • compact - Use compact JSON (no indentation)

§Returns

NDJSON line with trailing newline