In grails I am trying to return parameters back to the ui. In my controller I respond with a map. The problem I have is the domain objects for example parent and child end up double wrapped.
Map paramsdata = [
child: parent.child,
parent: parent,
]
respond( paramsdata )
so my response is something like this
"child":{"child":{all properties here}}, "parent":{"parent":{all properties here}}
This means in the ui I have to do something like response.get('parent').get('parent')
I have tried a lot of different ways to get this to work how I would like but nothing seems to work.