JsonException: Max allowed object depth reached while trying to export from type System.Single
Posted on 2015-08-27 16:47 greyhh 阅读(1895) 评论(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吧!