<Why did json views syntax change between Grails 4...
# questions
r
Why did json views syntax change between Grails 4 and Grails 5? While upgrading a Grails 4 application to Grails 5, I encountered a failure in one of the json views (.gson file) when specifying a field having an empty map. In Grails 4, this worked fine, but in Grails 5 I have to put parentheses around the empty map literal, or the render call fails saying that there is no property of the view class with that name. I wrote the following unit test to reproduce the behavior: import grails.plugin.json.view.test.JsonRenderResult import...