pub fn write_json_config(path: &Path, config: &Value) -> Result<()>
Write a JSON config file with pretty formatting