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); }
static public string Object2Json(object[] data) { if (data == null) { return(""); } var pil = new PIL <object>(data, true, (obj) => json.Serialize(obj)); return(pil.jsonstr); }
//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); }