title: How to get JSON object using HttpURLConnection instead of Volley?
body: <p>What I'm trying to do is get some data from a <code>HttpURLConnection</code> instead of using <code>JsonObjectRequest()</code> from the Volley library.</p>
  
  <p>Below is the code that I use to grab a JSON object from my server. </p>
  
  <pre><code>JsonObjectRequest jsonReq = new JsonObjectRequest(Method.GET,"myURL", null, new Response.Listener&lt;JSONObject&gt;();
  </code></pre>
  
  <p>I tried changing the <code>null</code> to a <code>JSONObject</code> after <code>myURL</code> was changed to <code>null</code>. But that did not work out.</p>