grails - Second level expand in gson -


i'm using grails 3.2.2 , org.grails.plugins:views-gradle:1.1.1 , in section gson i'd expand users , carnets. tried:

import com.example.sections.section  model {     section section }  json g.render(section, [excludes:['archived', 'deleted'], expand:['clients', 'clients.carnets']]){ } 

but expands clients in result json. how can that? btw carnets in client domain class transient. possible add transient variables result gson? if - how?

not of version 1.1, seems reasonable thing want do. please report , issue https://github.com/grails/grails-views/issues


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -