JsonException: Max allowed object depth reached while trying to export from type System.Single
来源:互联网 发布:vb6.0 sql模糊查询 编辑:程序博客网 时间:2024/04/29 02:59
在进行类转json字符串时,报错JsonException: Max allowed object depth reached while trying to export from type System.Single。
ok,实际上是类的属性中有json不能识别的数据类型,我这里就脑残的float。去除掉之后就ok了。
(备注:用的是LitJson)
那一般什么类型是允许的呢?
我在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吧!
1 0
- JsonException: Max allowed object depth reached while trying to export from type System.Single
- Memcached ++++ exception thrown while trying to get object from cache for key
- How to export files from rpm file on ubuntu system
- 微软企业库--Activation error occured while trying to get instance of type Database
- Activation error occured while trying to get instance of type Database
- Activation error occured while trying to get instance of type IcacheManager,key
- ORA-04020: deadlock detected while trying to lock object 报错问题解决步骤
- the object of type 'Transform' has been destroyed but your are still trying to access it
- The object of type 'RectTransform' has been destroyed but you are still trying to access it
- How to convert a type object from unshared to shared.
- 【问题处理】Unable to cast object of type 'System.DBNull' to type 'System.String'.
- How to export/import data with LOB type from one user/schema to another
- Error while trying to run project
- Type mismatch: cannot convert from Object to String
- Type mismatch: cannot convert from Enumeration<String> to Enumeration<Object>
- Type mismatch: cannot convert from Object to String
- (Entlib 5.0)Activation error occured while trying to get instance of type ICacheManager, key ""求解决办法
- Oracle 9i 升级中的bug-- Sys.Cdc_alter_ctable_before ORA-04020 deadlock detected while trying to lock object
- JVM性能调优监控工具jps、jstack、jmap、jhat、jstat、hprof使用详解
- poj3185--The Water Bowls(高斯消元问题3)
- 1082.Read Number in Chinese
- Python面向对象编程(二)
- 【数据结构第四周】树知识点整理(下)【平衡二叉树】
- JsonException: Max allowed object depth reached while trying to export from type System.Single
- 杭电第一周三角形问题
- jqGrid学习笔记(二)
- Pascal's Triangle
- Android中随处可见的匿名内部类
- 7、Libgdx网络操作
- HDU-2560-Buildings
- 1083.List Grades
- UVA 10678 || The Grazing Cow(计算椭圆面积 S = PI * a* b 长短半轴a,b