public ActionResult Index2(int id) { int pagesize = 5; Dictionary <int, List <salary_standardModel> > list = MyProperty.Fenye(id, pagesize); Dictionary <object, object> dic = new Dictionary <object, object>(); foreach (KeyValuePair <int, List <salary_standardModel> > item1 in list) { dic["dt"] = item1.Value; int row = item1.Key; dic["fy"] = row; } string zhi = JsonConvert.SerializeObject(dic); return(Content(zhi)); }