title: How to use HttpClient (or other HTTP class) to retrieve JSON asynchronously
body: <p>I've got the content from a HttpClient, but I'm not sure where to go next, in order to parse my JSON result. Also, how do I do this asynchronously so that I can display a wait dialog to the user with the option of cancelling the current request (not bothered about the UI example, how do I setup the HTTP class to be cancellable)?</p>
  
  <pre><code>    HttpClient client = new DefaultHttpClient();
      HttpGet request = new HttpGet("http://mysite/test.json");
      try
      {
          HttpResponse response = client.execute(request);
                      // What if I want to cancel now??
          HttpEntity entity = response.getEntity();
          InputStream inputStream = entity.getContent();
      }
  </code></pre>