grails.converters.deep.JSON
seems to now be deprecated. What is the replacement for:
import grails.converters.deep.JSON
print complexObject as JSON
grails.converters.deep.JSON
seems to now be deprecated. What is the replacement for:
import grails.converters.deep.JSON
print complexObject as JSON
Looks like
JSON.use('deep')
Makes JSON converter to use eager fetching rather than lazy one, thus encode whole object graph
use grails.converters.JSON
but add
grails.converters.json.default.deep = true
in conf/Config.goovy
See Grails get child domain objects for other options