In GO, how can I get an array of the ages from the json Data below
{
"people": {
"female": [
{
"age": 31,
"id": 1
},
{
"age": 32,
"id": 2
}
],
"male": [
{
"age": 33,
"id": 3
},
{
"age": 34,
"id": 5
}
]
}
}
End result should be a collection of ages eg. [31,32,33,34]