public void SaveDict() { using (var fs = File.Open(dictPath, FileMode.Create, FileAccess.Write)) { JsonSerializer.Serialize( new Utf8JsonWriter(fs, new JsonWriterOptions { Indented = true, Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping }), translations); } saveDebouncer.Done(); }