pub fn write_json( verdict: &Verdict, custom_patterns: &[String], w: impl Write, ) -> Result<()>
Write verdict as JSON to the given writer.