pub fn write_json_atomic(path: &Path, value: &Value) -> Result<()>
Write JSON to path atomically: write to <path>.spool-tmp then rename. The parent directory MUST exist.
path
<path>.spool-tmp