pub fn write_json_file(path: &Path, v: &Value, dry_run: bool) -> Result<()>
Writes a JSON value to a file with pretty-printing. Creates a backup before writing.