title: Grails JSON array
body: <p>I'm converting a list of Foo objects to a JSON string. I need to parse the JSON string back into a list of Foos. However in the following example, parsing gives me a list of JSONObjects instead of Foos.</p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>List list = [new Foo("first"), new Foo("second")]
  def jsonString = (list as JSON).toString()
  
  List parsedList = JSON.parse(jsonString) as List
  println parsedList[0].getClass() // org.codehaus.groovy.grails.web.json.JSONObject
  </code></pre>
  
  <p>How can I parse it into Foos instead?
  Thanks in advance.</p>