org.json.JSONException: End of input at character 0 of
2015-05-08 15:56
579 查看
解析json字符串时出现org.json.JSONException: End of input at character 0 of 异常
JSONObject jsonObject = new JSONObject(jsonString)
jsonObject.getString("key");
原因:jsonStrign为""空的字符串,或者为" "n个空格(此时异常信息为End of input at character n of)
JSONObject jsonObject = new JSONObject(jsonString)
jsonObject.getString("key");
原因:jsonStrign为""空的字符串,或者为" "n个空格(此时异常信息为End of input at character n of)
相关文章推荐
- org.json.JSONException: End of input at character 0 of 异常
- android中Http访问时 connection.getResponseCode()不被执行,且报错 org.json.JSONException: End of input at character 0 of .
- org.json.JSONException: End of input at character 0 of
- org.json.JSONException: End of input at character 0 of解决
- 代码消息org.json.JSONException: End of input at character 0 of
- 异常:org.json.JSONException: End of input at character 0 of
- bug_ _org.json.JSONException: End of input at character 0 of
- org.json.JSONException: End of input at character 0 of问题解决
- Android学习——org.json.JSONException: End of input at character 0 of
- org.json.JSONException:End of input at character 0 of
- org.json.JSONException: Unterminated object at character 97 of
- JSON转换出现错误:net.sf.json.JSONException: Unterminated string at character 38 of
- JSON经典异常:org.json.JSONException: Unterminated string at character
- JSON转换出现错误:net.sf.json.JSONException: Unterminated string at character 38 of
- com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
- net.sf.json.JSONException: Found starting '{' but missing '}' at the end. at character 0 of null
- Json数据解析异常:org.json.JSONException: Unterminated object at character
- JSON经典异常:org.json.JSONException: Unterminated string at character
- java.io.EOFException: No content to map to Object due to end of input
- Hibernate error : org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree