title: JsonSlurper returns No signature of method: groovy.json.JsonSlurper.parseText() is applicable for argument types: (java.util.ArrayList)
body: <p>I'm trying to parse JSON file with JsonSlurper.parseText but keep getting similar problems.</p>
  
  <pre><code>def jsonParse = null
  def http = new HTTPBuilder(url)
  http.auth.basic(username, password)
  http.request(Method.GET) {
      response.success = { resp, reader -&gt;;
        jsonParse = new JsonSlurper().parseText(reader)
      }
  }
  </code></pre>
  
  <p>Whenever I run my application the error message says</p>
  
  <p>No signature of method: groovy.json.JsonSlurper.parseText() is applicable for argument types: (java.util.ArrayList)</p>
  
  <p>I understand that JsonSlurper.parseText() is asking for a java.util.ArrayList type as an input. So I tried the following to figure out the type of the input using this code.</p>
  
  <pre><code>def jsonParse = null
  def http = new HTTPBuilder(url)
  http.auth.basic(username, password)
  http.request(Method.GET) {
      response.success = { resp, reader -&gt;;
        jsonParse = reader
      }
  }
  render jsonParse.getClass()
  </code></pre>
  
  <p>This prints out the following:</p>
  
  <pre><code>class java.util.ArrayList
  </code></pre>
  
  <p>I don't understand why I'm getting this error when I am feeding the input with correct datatype.</p>
  
  <p>Any suggestions?</p>