JsonException: Max allowed object depth reached while trying to export from type System.Single
生活随笔
收集整理的這篇文章主要介紹了
JsonException: Max allowed object depth reached while trying to export from type System.Single
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在進行類轉json字符串時,報錯JsonException: Max allowed object depth reached while trying to export from type System.Single。
ok,實際上是類的屬性中有json不能識別的數據類型,我這里就腦殘的float。去除掉之后就ok了。
(備注:用的是LitJson)
那一般什么類型是允許的呢?
我在JsonData類中找到了答案。
[csharp]?view plaincopy總結
以上是生活随笔為你收集整理的JsonException: Max allowed object depth reached while trying to export from type System.Single的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Sql语句里的递归查询
- 下一篇: 使用Dottrace跟踪代码执行时间