pub fn format_structured_error(err: &dyn Error, verbose: bool) -> String
Format a structured JSON error string for –output json mode.