pub fn heatmap_to_json(heatmap: &FileHeatmap) -> Result<String>
Return file heatmap as JSON string (for CLI)