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