diff --git a/output/formatter.go b/output/formatter.go index 0de65ee..8211f5e 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -45,12 +45,12 @@ Summary: ` var json = `{ - "metrics": [ - Files: {{.Stats.NumFiles}}, - Lines: {{.Stats.NumLines}}, - Nosec: {{.Stats.NumNosec}}, - Issues: {{.Stats.NumFound}}], - + "metrics": { + "files": {{.Stats.NumFiles}}, + "lines": {{.Stats.NumLines}}, + "nosec": {{.Stats.NumNosec}}, + "issues": {{.Stats.NumFound}} + }, "issues": [ {{ range $index, $issue := .Issues }}{{ if $index }}, {{ end }}{ "file": "{{ $issue.File }}",