pub fn write_json_report( result: &ScanResult, path: &Path, today: NaiveDate, ) -> Result<()>
Serialize the scan result as JSON and write it to a file (used by sweep --output).
sweep --output