mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:30:46 -05:00
18 lines
292 B
C#
18 lines
292 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Aki.Common.Utils
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|