我的代码:机器人的JSONObject抛出异常
string result = "[{"lat":"b", "lon":"d", "ulica":"ulica1"}]";
jArray = new JSONArray(result);
tab =new String[jArray.length()];
json = jArray.getJSONObject(0);
tab[0]=json.getString("lat");
tab[1]=json.getString("lon");
tab[2]=json.getString("ulica");
它抛出jsonException,为LON没有价值。谁能帮我?
这是我的错,而不是LON我有很多我的结果字符串...我从早上找这个拼写错误....,P
你可以在异常中发布消息吗? – 2012-01-03 09:03:03
你得到了什么确切的错误信息? – mH16 2012-01-03 09:05:53