MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / save_json

Method save_json

modules/ai/reporter.py:406–417  ·  view source on GitHub ↗

Save JSON report to file.

(
        self,
        scan_results: list[ScanResult],
        output_path: str,
        config: Optional[ReportConfig] = None,
    )

Source from the content-addressed store, hash-verified

404 def save_json(
405 self,
406 scan_results: list[ScanResult],
407 output_path: str,
408 config: ReportConfig | None = None,
409 ) -> Path:
410 """Save JSON report to file."""
411 data = self.generate_json(scan_results, config)
412 path = Path(output_path)
413 path.write_text(json.dumps(data, indent=2, default=str))
414 self.logger.info(f"JSON report saved to {path}")
415 return path

Callers 1

report_jsonFunction · 0.95

Calls 1

generate_jsonMethod · 0.95

Tested by

no test coverage detected