pub fn write_json_with_indent<T: Serialize, P: AsRef<Path>>( path: P, value: T, indent: usize, ) -> Result<(), Error>
Writes an object to a JSON file with a custom indentation.