Skip to main content

print_json

Function print_json 

Source
pub fn print_json<T: Serialize>(value: &T) -> Result<()>
Expand description

Prints a value as compact, single-line JSON to stdout.

The trailing newline makes this suitable for NDJSON streams when each call emits one self-contained JSON record.