在解析之前过滤掉不正确的JSON

时间:2012-08-30 17:23:15

标签: android json jsonexception

我正在尝试解析作为API响应发送给我的一些JSON但是由于某种原因,它始终以一个“一个”给我,即使其余的非常好,例如

"one"{"position":"0", "level":"0", "is_active":"0", "name":"Root",
"children": [{
    "position":"0"...

这给了我例外:

org.json.JSONException: Value one of type java.lang.String cannot be converted to JSONObject

我能做些什么来摆脱它吗?

0 个答案:

没有答案
相关问题