0
完全なJSON文字列を取得できません。文字列の最後の3文字は表示されません。ここではJSON文字列であるJSON Exceptionorg.json.JSONException:文字の末尾にある文字列
{"status":"success","data":"Screenshot_2016-07-24-13-06-4120160726082711.pn
JSONリクエスト
StringRequest stringRequest = new StringRequest(Request.Method.POST,
url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
try {
Utils.psLog("Server RESPONSE >> " + response);
JSONObject obj = new JSONObject(response);
}
catch {
}
エラーログ
07-26 13:57:11.556 8632-8632/com.directory D/TEAMPS: Server RESPONSE >>
{"status":"success","data":"Screenshot_2016-07-24-13-06-4120160726082711.pn
07-26 13:57:11.557 8632-8632/com.directory D/TEAMPS: JSON Exceptionorg.json.JSONException: Unterminated string at character 78 of
{"status":"success","data":"Screenshot_2016-07-24-13-06-4120160726082711.pn
が、私が得るすべてがあり、これは、ところでそれが唯一でなければなりません: '{"ステータス ":"成功 "、"データ ":" Screenshot_2016-07-24-13-06-4120160726082711.png "} ' – amit
正しい。しかし、JSONを修正しても、あなたはまだ同じ問題を抱えていますか? –
こんにちは@Ricardo、この不完全な文字列は**サーバー**からどうやって解決できますか? – amit