pub fn atomic_write_json<T: Serialize>(path: &Path, value: &T) -> Result<()>
Atomically write value as pretty-printed JSON to path.
value
path
A trailing newline is appended so the file is well-formed for line-oriented tooling and diffs.