title: How do I access data from a Grails Filter?
body: <p>OK, I have a Grails filter that looks like this:</p>
  
  <pre><code>after = { model -&gt;
      modifyDataFromController(model)
  }
  </code></pre>
  
  <p>I want to modify the data getting rendered from the controller like this:</p>
  
  <pre><code>def myAction = {
      def myJson = getJson() // this returns JSON  
      render(contentType:"application/json", text:myJson)
  }
  </code></pre>
  
  <p>So, is there a way for me to access myJson via the model object?  If not, how am I supposed to access the data from the controller?  Please be very specific, and don't assume I know what you're talking about. :)</p>
  
  <p>Thanks in advance.</p>