0
我试图从url.I我下面这个教程GET JSON数据:http://www.learn2crack.com/2013/10/android-asynctask-json-parsing-example.htmlAndroid的JSON解析器崩溃
我从这个网址试图获取JSON:http://api.learn2crack.com/android/json/
但我的应用程序崩溃,当我看logcat错误是:
E/JSON Parser(1936): Error parsing data org.json.JSONException: Unterminated array at character 13 of {n"user": [n{n"id": "001",n"name": "Raj Amal",n"email": "[email protected]"n}n]n}n
这是什么?我该如何解决它?
你确定它是一个有效的json吗? – Raghunandan
No.But此教程中使用此网址。 –
'{“user”:[{“id”:“001”,“name”:“Raj Amal”,“email”:“[email protected]”}]}'是有效的json在哪里' n's'来自。我没有在url中看到 – Raghunandan