title: Get jSON Response for POST
body: <p>I am trying to send a Request using this code</p>
  
  <pre><code>protected void Authenticate(String mUsername, String mPassword)
      { 
          HttpClient httpclient = new DefaultHttpClient();
          HttpPost httppost = new HttpPost("http://192.168.2.5:8000/mobile/");
  
          try {
              // Add your data
              List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);
              nameValuePairs.add(new BasicNameValuePair("username", mUsername));
              nameValuePairs.add(new BasicNameValuePair("password", mPassword));
              httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
  
              // Execute HTTP Post Request
              HttpResponse response = httpclient.execute(httppost);
              System.out.println("this is the response "+response);
          } catch (ClientProtocolException e) {
              // TODO Auto-generated catch block
              System.out.println("CPE"+e);
          } catch (IOException e) {
              // TODO Auto-generated catch block
              System.out.println("IOE"+e);
          }
      }
  </code></pre>
  
  <p>I am getting a <code>HttpResponse</code>, Is the way I am trying to implement correct ? If yes, How do I convert that response to jSON ?</p>
  
  <p><strong>LOG-CAT</strong></p>
  
  <pre><code>this is the response org.apache.http.message.BasicHttpResponse@2fb67110
  </code></pre>