fn write_json(path: &Path, data: &Value) -> Result<()>
json.dump(data, f, indent=2) plus a newline.
json.dump(data, f, indent=2)