MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / Json

Function Json

cmd/format/json.go:8–14  ·  view source on GitHub ↗
(report Report, out string)

Source from the content-addressed store, hash-verified

6)
7
8func Json(report Report, out string) {
9 outWrite(out, func(w io.Writer) error {
10 encoder := json.NewEncoder(w)
11 encoder.SetIndent("", " ")
12 return encoder.Encode(report)
13 })
14}

Callers 2

SaasFunction · 0.85
SaveFunction · 0.85

Calls 2

EncodeMethod · 0.95
outWriteFunction · 0.85

Tested by

no test coverage detected