org.json.JSONException: End of input at character 0 of Android
<p>I am trying to retrieve values from JSON and I am getting responseString as empty. Here is my code</p>

<pre><code>HttpClient httpClient = new DefaultHttpClient();
HttpContext httpContext = new BasicHttpContext();
HttpPost httpPost = new HttpPost(URL);
String jsons = "";
JSONObject jsonObject = new JSONObject();
jsonObject.put("tbl_id", tableid);
jsonObject.put("imei_no", phneimeino);
jsonObject.put("server_id", usrid);
jsonObject.put("customers", customerName1 + "," + customerName2 + "," + customerName3);
Log.w("JSON OBJECT is ", jsonObject.toString());
jsons = jsonObject.toString();
StringEntity se = new StringEntity(jsons);
httpPost.setEntity(se);
httpPost.setHeader("Accept", "application/json");
httpPost.setHeader("Content-type", "application/json");
HttpResponse response = httpClient.execute(httpPost, httpContext);
HttpEntity entity = response.getEntity();
String responseString = EntityUtils.toString(entity);
Log.i("Response", responseString);
JSONObject json = new JSONObject(responseString);
success = json.getString("iserror");
</code></pre>

<p>Here responseString is empty and showing the exception as <br></p>

<pre><code>org.json.JSONException: End of input at character 0 of
</code></pre>