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