public void OnSave(string path) { Dictionary <string, object> obj = new Dictionary <string, object>(); m_ActionObject.WriteJson(obj); string json_str = MiniJSON.Json.Serialize(obj); File.WriteAllText(path, json_str); AssetDatabase.Refresh(); }