//! JSON output -- serialises `AnalysisResult` slice to compact pretty JSON.
//!
//! This is intentionally a thin wrapper: `AnalysisResult` already derives
//! `serde::Serialize`, so the only work here is choosing the writer path.
use Write;
use crateAnalysisResult;
/// Write `results` as a pretty-printed JSON array to `out`.
///
/// The consumer is expected to pipe the output into jq or save it as the
/// input file for a subsequent `export` command invocation.
pub