Using the default converters there is currently not a quick way to exclude properties from serialization.
It would be great to have a quick way to pass a list of properties to be excluded from serialization.
While this can currently be done via the builders or with the following approach:
But the approach in the SO post is done at a global level.
It would be great to offer an alternative way to invoke serialization and pass a list of excluded properties
at the time serialization is invoked.
something logically equivalent to:
def json= GrailsUtils.runConverter(JSON,myDomainObj,excludedProps)
Hopefully the implementation could be a little more elegant than my example.
Adding some easy flexibility wold be a great improvement to the current implementation.