⑴ .net 如何把数据库里的数据写成json格式
先写成字符串,字符串格式为var list=[{"xlid":"cxh","xldigitid":123456,"topscore":2000,"topplaytime":"2009-08-20"},{"xlid":"zd","xldigitid":123456,"topscore":1500,"topplaytime":"2009-11-20"}];然后var jsonList = eval(list);//对象化jsonList即为json对象list