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
Don't know the reason. Try to use like this:
render(contentType: 'text/json') {[ 'products': products ? : "No products found" ]}