renderJSON outputs the audit data as JSON
(data AuditData)
| 13 | |
| 14 | // renderJSON outputs the audit data as JSON |
| 15 | func renderJSON(data AuditData) error { |
| 16 | auditReportLog.Print("Rendering audit report as JSON") |
| 17 | encoder := json.NewEncoder(os.Stdout) |
| 18 | encoder.SetIndent("", " ") |
| 19 | return encoder.Encode(data) |
| 20 | } |
| 21 | |
| 22 | // renderConsole outputs the audit data in a compact, high-density format optimized |
| 23 | // for agentic readability. Each line carries maximum information with minimal decoration. |