これは私のJavaコードです:
...
HttpResponse response = httpclient.execute(httppost);
HttpEntity responseEntity = response.getEntity();
JSONObject serverResponse = new JSONObject(EntityUtils.toString(responseEntity));
String error = serverResponse.getString("error");
text1.setText(error);
...
JSONを解析できません。
JSON:
[{"error":"1"}]
ありがとうございました!