In Groovy (not Grails), I want to get the color of such an item:
{
"8436": {
"color": "red",
}
}
The "8436" number is dynamic, but there is always only one.
I can't use JsonSlurper's json.8436.color
syntax, because the number would be hard-coded.
How to get the color?