You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have gson file that calls "render" with an empty includes array, it renders incorrect JSON like what is shown above as long as what's being rendered is an object that's not a map AND has a render body closure. The render logic seems to assume that there will be at least one include field, in which there would be a need for the leading comma since the include field(s) are rendered before the ones manually defined in the render closure.
The text was updated successfully, but these errors were encountered:
Plugin version: 2.3.2
Versions of Grails tested: 5.2.5, 5.3.2
The example below produces invalid JSON (due to the leading comma):
Sample Test Gson File
Sample Controller File
JSON OUTPUT
BEHAVIOR ANALYSIS
If we have gson file that calls "render" with an empty includes array, it renders incorrect JSON like what is shown above as long as what's being rendered is an object that's not a map AND has a render body closure. The render logic seems to assume that there will be at least one include field, in which there would be a need for the leading comma since the include field(s) are rendered before the ones manually defined in the render closure.
The text was updated successfully, but these errors were encountered: