We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7e9baa commit d9c50c3Copy full SHA for d9c50c3
src/main.rs
@@ -422,7 +422,10 @@ async fn generate_output(
422
let json_path = Path::new(output_directory).join("report.json");
423
let mut file = File::create(&json_path)
424
.expect("Failed to create JSON report file");
425
- file.write_all(json_data.to_string().as_bytes())
+ let formatted_json = serde_json::to_string_pretty(&json_data)
426
+ .expect("Failed to format JSON data");
427
+
428
+ file.write_all(formatted_json.as_bytes())
429
.expect("Failed to write JSON data");
430
}
431
0 commit comments