首页 > Web开发 > 详细

JsonException: Max allowed object depth reached while trying to export from type System.Single

时间:2015-08-27 18:09:13      阅读:389      评论:0      收藏:0      [点我收藏+]

在进行类转json字符串时,报错JsonException: Max allowed object depth reached while trying to export from type System.Single。

ok,实际上是类的属性中有json不能识别的数据类型.

JsonData

        public JsonData(bool boolean);
        public JsonData(double number);
        public JsonData(int number);
        public JsonData(long number);
        public JsonData(object obj);
        public JsonData(string str);

所以去除掉float吧!

 

JsonException: Max allowed object depth reached while trying to export from type System.Single

原文:http://www.cnblogs.com/greyhh/p/4763813.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!