7
grails.converters.deep.JSON
似乎现在已被弃用。什么是替代:什么是grails.converters.deep.JSON的替代品
import grails.converters.deep.JSON
print complexObject as JSON
grails.converters.deep.JSON
似乎现在已被弃用。什么是替代:什么是grails.converters.deep.JSON的替代品
import grails.converters.deep.JSON
print complexObject as JSON
貌似
JSON.use('deep')
使JSON转换器使用的渴望获取,而不是懒惰的一个,因此编码整个对象图
使用grails.converters.JSON
但添加
grails.converters.json.default.deep = tr UE
中的conf/Config.goovy
其他选项
见 Grails get child domain objects