I have a simple action such as this:
def showSomething() {
render Color.get(params.id) as JSON
}
This will render all the properties in the Color class as JSON. However, what if I only want to render two properties, say, colorName and shade
?