请问能不能直接把DATASET转换为JSON呢? public static string ToJSON(this object obj) { JavaScriptSerializer serializer = new JavaScriptSerializer(); return serializer.Serialize(obj); } public static string ToJSON(this object obj, int recursionDepth) { JavaScriptSerializer serializer = new JavaScriptSerializer(); serializer.RecursionLimit = recursionDepth; return serializer.Serialize(obj); }
3 回答
- 3 回答
- 0 关注
- 320 浏览
添加回答
举报
0/150
提交
取消