title: How do I return an Array from grails / jdo to Flex
body: <p>this seems really simple but I haven't gotten this to work. I am building my app with grails on google app engine. This pretty much requires you to use JDO.</p>
  
  <p>I am making an HTTP call from flex to my app. The action that I am calling on the grails end looks like so</p>
  
  <pre><code>def returnShowsByDate = {
      def query = persistenceManager.newQuery( Show )
      def  showInstanceList = query.execute()
  
      return (List&lt;Show&gt;) showInstanceList
  
  }
  </code></pre>
  
  <p>I have tried just returning "hello from grails" and that works just fine. I have alos tried the following</p>
  
  <pre><code>return showInstanceList
  </code></pre>
  
  <p>the JDO docs say the query.execute() returns a collection. Why I cant just return that to Flex I have no clue.</p>
  
  <p>Any thoughts?</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <blockquote>
          <p>after playing around with this some more I was able to get a result event back by have grails convert the object to JSON or XML</p>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>wish I could just return a damn ArrayList. That Would be better but oh well.</p>