pub fn atomic_write_json(path: &Path, value: &impl Serialize) -> Result<()>
Atomically write a serializable value to path using tmp + rename. Creates parent directories if needed.
path