JSON Output Reference
Nightward emits redacted JSON for automation.
Public JSON objects include schema_version unless they predate the v0.1.4 schema contract. Pre-1.0 schema changes should stay additive whenever possible.
Scan
nw scan --jsonThe scan summary separates inventory counts from finding counts:
items_by_classificationitems_by_riskitems_by_toolfindings_by_severityfindings_by_rulefindings_by_tool
Findings
nw findings list --json
nw findings explain <finding-id> --jsonFindings include rule, severity, evidence, impact, recommendation, fix metadata, and redacted patch hints where safe.
Policy
nw policy check --strict --jsonPolicy output includes pass/fail status, threshold, violations, ignored findings, and optional analysis signal violations.
Report Diff
nw report diff --from previous.json --to current.json --json
nw report history --json
nw report latest --jsonReport diff output includes:
added_findingsremoved_findingschanged_findings- summary counts for added, removed, changed, and unchanged findings
Report history records include path, report_name, mod_time, findings, highest_severity, findings_by_severity, and size_bytes.
Badge
nw policy badge --output -The badge artifact includes schema_version, status, message, color, passed, threshold, finding_count, blocking_count, ignored_count, analysis_signal_count, analysis_violation_count, provider_warnings, and an optional SARIF URL.