Exemple #1
0
        public static void Load(this IJsonSerializable serializable, string path)
        {
            JObject obj = JObject.Parse(TextIO.Load(path));

            serializable.Deserialize(obj);
        }
Exemple #2
0
        public static void Save(this IJsonSerializable serializable, string path)
        {
            JObject obj = serializable.Serialize();

            TextIO.Save(path, obj.ToString());
        }