davymitchell opened a new issue, #14268:
URL: https://github.com/apache/grails-core/issues/14268
Experiencing an odd bug rendering a JSON list as part of a Rest API.
I am finding if the list of DO's contains a proxy object as the first item
of a list, the view renders it as 'null' other proxy objects are rendered as
expected.
If the first item is not a proxy, then all objects are rendered as expected.
My workaround is to do something like this:
if (items.size() > 0) {
items[0] = GrailsHibernateUtil.unwrapIfProxy(items[0]) as DO)
}
But this doesn't seem like a great or scalable solution.
Grails 4.0.13 Views-json 2.0.4
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]