MCPcopy Create free account
hub / github.com/github/gh-aw / renderJSON

Function renderJSON

pkg/cli/audit_report_render.go:15–20  ·  view source on GitHub ↗

renderJSON outputs the audit data as JSON

(data AuditData)

Source from the content-addressed store, hash-verified

13
14// renderJSON outputs the audit data as JSON
15func 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.

Callers 4

TestRenderJSONFunction · 0.85
TestRenderJSONCompleteFunction · 0.85
renderAuditOutputFunction · 0.85

Calls 1

PrintMethod · 0.80

Tested by 3

TestRenderJSONFunction · 0.68
TestRenderJSONCompleteFunction · 0.68