Example #1
0
        public static JSONArray FoldList <T>(this List <T> list, SimpleJsonMapper <T> mapper)
        {
            JSONArray array = new JSONArray();

            for (int i = 0; i < list.Count; i++)
            {
                JSONClass item = mapper.ExportState(list[i]);
                array.Add(item);
            }

            return(array);
        }