//! JSON output formatter.
usecrate::output::BuildOutput;/// Format the build output as JSON.
pubfnformat(output:&BuildOutput)-> String{serde_json::to_string_pretty(output).unwrap_or_else(|e|format!("{{\"error\": \"Failed to serialize output: {}\"}}", e))}