Beispiel #1
0
        public void Parse(string _cfg)
        {
            AppResponse resp = (AppResponse)JsonUtility.FromJson(_cfg, typeof(AppResponse));

            apps = resp.cmp;
            //	apps=new AppDescription[] { (AppDescription)JsonUtility.FromJson(_cfg, typeof(AppDescription))};
        }
Beispiel #2
0
        public void SaveJSON()
        {
            AppResponse resp = new AppResponse();

            resp.cmp = apps;
            jsonText = JsonUtility.ToJson(resp);
            base.SaveJSON();
            jsonText = "";
        }