Skip to main content

print_json

Function print_json 

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

Render a value as pretty JSON to stdout.

For commands whose output is a summary the CLI builds itself, with no table equivalent.

ยงErrors

Returns an error if JSON serialization or writing fails.