pub fn write_json(path: &Path, value: &impl Serialize) -> Result<()>
Replaces the file at path with value as pretty JSON, by write_atomic.
path
value
write_atomic