gsartori opened a new issue, #15306:
URL: https://github.com/apache/grails-core/issues/15306
### Expected Behavior
This json-view:
```
model {
TProduction obj
}
json g.render(obj, [
expand: ['artwork', 'artwork.colors', 'plates'],
excludes: [],
])
```
Produced something like this with Grails 6:
```
{
"id": 2,
"dateCreated": "2025-12-22T21:56:47.196116",
"plates": [
{
"id": 4,
"width": 2000,
"markplateKey": "XXX",
"dateCreated": "2025-12-22T21:56:47.287394",
"printerRef": "XXX",
"lastUpdated": "2025-12-22T23:34:39.773883",
"test": false,
"production": {
"id": 2
}
},
{
"id": 5,
"width": 2000,
"markplateKey": "XXX",
"dateCreated": "2025-12-22T21:56:47.327023",
"printerRef": "XXX",
"lastUpdated": "2025-12-22T21:56:47.335597",
"test": false,
"production": {
"id": 2
}
},
{
"id": 2,
"width": 2000,
"markplateKey": "XXX",
"dateCreated": "2025-12-22T21:56:47.203744",
"printerRef": "XXX",
"lastUpdated": "2025-12-22T21:56:47.211625",
"test": false,
"production": {
"id": 2
}
},
{
"id": 3,
"width": 2000,
"markplateKey": "XXX",
"dateCreated": "2025-12-22T21:56:47.246586",
"printerRef": "XXX",
"lastUpdated": "2025-12-22T21:56:47.254463",
"test": false,
"production": {
"id": 2
}
}
],
"productionKey": "XXX",
"agentCreated": "ONLINE",
"usernameCreated": "user",
"artwork": {
"id": 2,
"width": 800,
"printerRef": "XXX",
"dateCreated": "2025-12-22T21:56:47.165453",
"widthRepetitions": 1,
"lastUpdated": "2025-12-22T21:56:47.174548",
"manufacturerCompany": {
"id": 3
},
"colors": [
{
"id": 7,
"width": 800,
"dateCreated": "2025-12-22T21:56:47.186169",
"rgb": "FFFF00",
"technology": "-",
"coverage": 200.0,
"printSide": "FRONT",
"material": {
"id": 1
}
},
{
"id": 5,
"width": 800,
"dateCreated": "2025-12-22T21:56:47.177355",
"rgb": "00FFFF",
"technology": "-",
"coverage": 200.0,
"printSide": "FRONT",
"material": {
"id": 1
}
},
{
"id": 8,
"width": 800,
"dateCreated": "2025-12-22T21:56:47.19077",
"rgb": "000000",
"technology": "-",
"coverage": 200.0,
"printSide": "FRONT",
"material": {
"id": 1
}
},
{
"id": 6,
"width": 800,
"dateCreated": "2025-12-22T21:56:47.181853",
"rgb": "FF00FF",
"technology": "-",
"coverage": 200.0,
"printSide": "FRONT",
"material": {
"id": 1
}
}
]
}
}
```
### Actual Behaviour
Now with Grails 7 the JSON gets produced like this:
```
{
"obj": {
"id": 2,
"dateCreated": "2025-12-22T21:56:47.196116",
"usernameCreated": "user",
"agentCreated": "ONLINE",
"dateReceived": null,
"usernameReceived": null,
"companyReceived": null,
"agentReceived": null,
"dateDeleted": null,
"usernameDeleted": null,
"agentDeleted": null,
"productionKey": "XXX",
"artwork": {
"id": 2
},
"plates": [
{
"id": 5
},
{
"id": 2
},
{
"id": 4
},
{
"id": 3
}
]
}
}
```
### Steps To Reproduce
_No response_
### Environment Information
_No response_
### Example Application
_No response_
### Version
7.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]