pub fn write_json_atomic<T: Serialize>( path: &Path, value: &T, ) -> CommandResult<()>
Serialize value to pretty JSON and write it to path atomically, creating parent directories as needed.
value
path