pub fn write_json_file<T: Serialize>( path: &Path, obj: &T, ) -> Result<(), FsPathError>
Writes the object as a JSON object.