pub fn atomic_write_json(path: &Path, data: &impl Serialize) -> Result<()>
Atomically write JSON to path (temp + rename) with mode 0o600.
path
0o600