title: Parse JSON from HttpURLConnection object
body: <p>I am doing basic http auth with the <code>HttpURLConnection</code> object in Java.</p>
  
  <pre><code>        URL urlUse = new URL(url);
          HttpURLConnection conn = null;
          conn = (HttpURLConnection) urlUse.openConnection();
          conn.setRequestMethod("GET");
          conn.setRequestProperty("Content-length", "0");
          conn.setUseCaches(false);
          conn.setAllowUserInteraction(false);
          conn.setConnectTimeout(timeout);
          conn.setReadTimeout(timeout);
          conn.connect();
  
          if(conn.getResponseCode()==201 || conn.getResponseCode()==200)
          {
              success = true;
          }
  </code></pre>
  
  <p>I am expecting a JSON object, or string data in the format of a valid JSON object, or HTML with simple plain text that is valid JSON. How do I access that from the <code>HttpURLConnection</code> after it returns a response?</p>