Answers for "marshaller in grails"

0

marshaller in grails

static {
        JSON.registerObjectMarshaller(this){
            Map<String,DomainName> objDomain = new LinkedHashMap<>(it.properties)
            objDomain.id = it.id
            objDomain.objectOtherDomain = OtherDomainName.get(it.otherDomainId)
            return objDomain
        }
    }
Posted by: Guest on February-11-2021

Browse Popular Code Answers by Language