title: Rendering 'as JSON' in Grails with conditional operator doesn't render correctly
body: <p>Came across this strange result today trying to render a list of objects as JSON in Grails 2.0.4...(i know i'm gonna regret asking this on account of something right under my nose...<strong>updated</strong> 5/26, my prediction was correct, see below :-))</p>
  
  <p>This works fine; the JSON renders correctly in the browser...</p>
  
  <pre><code>def products = [] //ArrayList of Product objects from service       
  def model = (products) ? [products:products] : [products:"No products found"] 
  render model as JSON
  </code></pre>
  
  <p>..so why doesn't this shortened version without <code>model</code> work? </p>
  
  <pre><code>def products = []       
  render ((products) ? [products:products] : [products:"No products found"]) as JSON
  </code></pre>
  
  <p>The resulting JSON from the above code is output as a single line of text, so I suspect it's not picking up <code>as JSON</code>, but it's parenthesized correctly, so what's the deal?</p>
  
  <blockquote>
    <p>['products':[com.test.domain.Product : null,
    com.test.domain.Product...]</p>
  </blockquote>