title: Getting JSON in " Android Asynchronous Http Client Library "
body: <p>I recently moved to <code>Android Asynchronous Http Client Library</code> for faster data moving.</p>
  
  <p>I want to move my codes from the old state and a new state.. Here's how I used to get The data :</p>
  
  <pre><code>public class loadSomeStuff extends AsyncTask&lt;String, Integer, String&gt; {
          @Override
          protected String doInBackground(String... params) {
              // TODO Auto-generated method stub
              InputStream isr = null;
              String result = "";
              String url;
              HttpClient httpclient = new DefaultHttpClient();
              HttpPost httpost;
              HttpResponse resposne;
              HttpEntity entity;
              BufferedReader reader;
              StringBuilder sb;
              String line = null;
  
              try {
                  url = "Secret";
                  httpost = new HttpPost(url);
                  resposne = httpclient.execute(httpost);
                  entity = resposne.getEntity();
                  isr = entity.getContent();
                  reader = new BufferedReader(
                          new InputStreamReader(isr, "UTF-8"), 8);
                  sb = new StringBuilder();
                  while ((line = reader.readLine()) != null) {
                      sb.append(line + "\n");
                  }
                  isr.close();
                  result = sb.toString();
  
                  JSONArray jArray = new JSONArray(result);
                  for (int i = 0; i &lt; jArray.length(); i++) {
                      JSONObject json = jArray.getJSONObject(i);
                      //filldatabase///
              } catch (Exception e) {
                  e.printStackTrace();
              }
              return result;
          }
  </code></pre>
  
  <p>And now what shall I do so I can use the library?? Thank you!</p>