diff --git a/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java b/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java index d312b947642..c6441daf998 100644 --- a/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java +++ b/src/main/groovy/org/grails/web/converters/configuration/ConvertersConfigurationInitializer.java @@ -155,7 +155,7 @@ private Config getGrailsConfig() { private void initDeepJSONConfiguration() { DefaultConverterConfiguration deepConfig = new DefaultConverterConfiguration(ConvertersConfigurationHolder.getConverterConfiguration(JSON.class), getProxyHandler()); - deepConfig.registerObjectMarshaller(new org.grails.web.converters.marshaller.json.DeepDomainClassMarshaller(includeDomainVersionProperty(getGrailsConfig(), "json"), getProxyHandler(), grailsApplication)); + deepConfig.registerObjectMarshaller(new org.grails.web.converters.marshaller.json.DeepDomainClassMarshaller(includeDomainVersionProperty(getGrailsConfig(),"json"), includeDomainClassProperty(getGrailsConfig(), "json"), getProxyHandler(), grailsApplication)); ConvertersConfigurationHolder.setNamedConverterConfiguration(JSON.class, "deep", deepConfig); }