1
0
mirror of synced 2024-11-24 04:20:10 +01:00
TaikoSoundEditor/Json.cs

19 lines
405 B
C#
Raw Normal View History

2023-07-17 10:20:00 +02:00
using System.Text.Json;
namespace TaikoSoundEditor
{
internal static class Json
{
public static T Deserialize<T>(string json)
{
return JsonSerializer.Deserialize<T>(json);
}
public static string Serialize<T>(T item)
{
return JsonSerializer.Serialize(item, new JsonSerializerOptions { WriteIndented = true });
}
}
}