Using Grail 1.3.7 I found that the JSON converter ignores transient properties of Domain objects. Question: Is there an elegant way to work around this obstacle.
Bonus question: what's the reasoning behind excluding calculated fields(transient props) from being sent to the response????
what works for me is this one line
def jsonobj=domobj.properties as JSON
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With