pub fn emit_json<T: Serialize>( report: &T, path: Option<&Path>, ) -> Result<(), CliError>
Render report as JSON and emit it.
report
emit
Errors: CliError::Io when the report cannot be serialized or written.
CliError::Io