Esempio n. 1
0
        private List <entry> ReadJson(string path)
        {
            List <entry> list = new List <entry>();
            string       json = File.ReadAllText(path);
            VAL          val  = Script.Evaluate(json);

            foreach (var item in val)
            {
                entry entry = new entry
                {
                    name  = (string)item[0],
                    value = (string)item[1],
                };

                list.Add(entry);
            }

            return(list);
        }