0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

18 lines
292 B
C#
Raw Normal View History

2023-03-03 18:52:31 +00:00
using Newtonsoft.Json;
2024-05-21 19:10:17 +01:00
namespace SPT.Common.Utils
2023-03-03 18:52:31 +00:00
{
public static class Json
{
public static string Serialize<T>(T data)
{
return JsonConvert.SerializeObject(data);
}
public static T Deserialize<T>(string json)
{
return JsonConvert.DeserializeObject<T>(json);
}
}
}