title: Getting JSON response Android
body: <pre><code>HttpClient httpClient = new DefaultHttpClient();
  HttpPost httpPost = new HttpPost(URL);
  
  try {
      StringEntity documentStringified = new StringEntity(Obj.toString());
      httpPost.setEntity(documentStringified);
  } catch (UnsupportedEncodingException e) {
      Log.d("UnsupportedEncodingException", e.toString());
  }
  
  try {
      HttpResponse response = httpClient.execute(httpPost);
      Log.d("Response", response.toString());
  } catch (IOException e) {
      Log.d("IOException", e.toString());
  }
  </code></pre>
  
  <p>I am not able to get the <code>response</code>. How to print the response in <code>Logger or console.</code> <code>response.toString()</code> or <code>response.getEntity.toString()</code> does not work. </p>
  
  <p>Should i set the Content-type as <code>"application/json"</code>. </p>