pub fn write_json_atomic(path: &Path, value: &impl Serialize) -> Result<()>
Serializes value to <path>.json.tmp then renames — readers never see a partial file.
value
<path>.json.tmp