DataStorage
is a simple class I'm using in my plugins to save data in json file
public class DataStorage<T> where T : class
{
public string DataPath { get; private set; }
public DataStorage(string dir, string fileName)
{
DataPath = Path.Combine(dir, fileName);
}