I have been writing custom marshallers in a grails project for the purposes of being able to exclude some fields from the json model such as the class names. I am registering the marshallers through a spring bean which is called in the bootstrap.
I find though that most of this marshalling code is quite repetitive and the techniques leads to too many marshallers.
I'd like to know if there is a more generic was to always ignore certain fields from JSON conversion so I don't have to always write a custom marshaller for everything.
How could I override the default groovy JSON converters?