title: How to convert HttpEntity into JSON?
body: <p>I want to retrieve JSON from a web-service and parse it then.<br>
  Am I on the right way?</p>
  
  <pre><code>    HttpClient httpclient = new DefaultHttpClient();
      HttpGet httpget = new HttpGet(url);
      HttpResponse response;
      try {
          response = httpclient.execute(httpget);
          HttpEntity entity = response.getEntity();
  
          if (entity != null) {
             // parsing JSON
          }
  
      } catch (Exception e) {
      }
  </code></pre>
  
  <p>Unfortunately I don't know how to convert <code>HttpEntity</code> into a JSONObject.</p>
  
  <p>This is my JSON (extract):</p>
  
  <pre><code>{
      "names": [
          {
              "name": "Zachary"
          },
          {
              "name": "Wyatt"
          },
          {
              "name": "William"
          }
      ]
  }
  </code></pre>