title: Change Content-Type of JSON response while using 'as JSON' to render response
body: <p>It seems as if in Grails, the default contentType used to render a JSON response when using something like what follows:</p>
  
  <pre><code>render Book.list(params) as JSON
  </code></pre>
  
  <p>is application/json</p>
  
  <p>There is of course a more longhanded way to define the content type:</p>
  
  <pre><code>render(contentType:"text/json") {
      book(title:b.title,author:b.author)
  }
  </code></pre>
  
  <p>Is there a way to use the shorthand way, and still get a response content-type of "text/json"?</p>
  
  <p>Note:  examples taken from <a href="http://www.grails.org/doc/latest/ref/Controllers/render.html" rel="nofollow">here</a></p>