pub fn build_duplication_json( report: &DuplicationReport, root: &Path, elapsed: Duration, explain: bool, ) -> Result<Value, Error>