您的位置:首页 > 移动开发 > Objective-C

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

2015-03-29 16:46 627 查看
在进行类转json字符串时,报错JsonException: Max allowed object depth reached while trying to export from type System.Single。

ok,实际上是类的属性中有json不能识别的数据类型,我这里就脑残的float。去除掉之后就ok了。

(备注:用的是LitJson)

那一般什么类型是允许的呢?

我在JsonData类中找到了答案。

[csharp] view plaincopy





public JsonData(bool boolean);

public JsonData(double number);

public JsonData(int number);

public JsonData(long number);

public JsonData(object obj);

public JsonData(string str);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐