using System.Diagnostics; using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Unicode; namespace TaikoSoundEditor { internal static class Json { public static T Deserialize(string json) { return JsonSerializer.Deserialize(json); } public static string Serialize(T item) { return JsonSerializer.Serialize(item, new JsonSerializerOptions { Encoder = JavaScriptEncoder.Create(UnicodeRanges.All), WriteIndented = true }); } } }