title: Can you get the response data from Volley outside of the stringRequest variable in Kotlin?
body: <p>I want to get the Volley stringRequest response from my website outside of the variable.</p>
  
  <pre><code>val queue = Volley.newRequestQueue(this)
  val url = ""
  
  
  // Request a string response from the provided URL.
  val stringRequest = StringRequest(
      Request.Method.GET, url,
      Response.Listener&lt;String&gt; { response -&gt; 
          var obj = JSONObject(response) &lt;-- cant access this variable outside of stringRequest
      },
      Response.ErrorListener { textView3.text = "That didn't work!" })
  
  stringRequest.body.toString() &lt;-- cant covert null to string
  
  stringRequest.headers.toString() &lt;-- output is {}
  
  //here i want to do something like 
  
  if (response == "True") {
      //do something
  }
  </code></pre>
  
  <p>On the website that I'm accessing there is nothing more than <code>{"check":"True"}</code></p>