コード例 #1
0
        static public string Object2Json(Dictionary <string, Dictionary <string, string> > data)
        {
            if (data == null)
            {
                return("");
            }
            var pil = new PIL <Dictionary <string, string> >(data, (obj) => json.Serialize(obj));

            return(pil.jsonstr);
        }
コード例 #2
0
        static public string Object2Json(object[] data)
        {
            if (data == null)
            {
                return("");
            }
            var pil = new PIL <object>(data, true, (obj) => json.Serialize(obj));

            return(pil.jsonstr);
        }
コード例 #3
0
        //static public T string Object2Json(Dictionary)
        static public string Object2Json(Dictionary <int, Dictionary <string, object> > data)
        {
            if (data == null)
            {
                return("");
            }
            Func <Dictionary <string, object>, string> func = (obj) =>
            {
                return(json.Serialize(obj));
            };
            var pil = new PIL <Dictionary <string, object> >(data, (obj) => json.Serialize(obj));

            return(pil.jsonstr);
        }