So I got a JSON array like this one:
"robots": [
{
"id": 1,
"name": "foo",
"last_connection": "2017-03-18 14:25:36"
},{
"id": 3,
"name": "bar",
"last_connection": "2017-03-19 17:28:39"
},{
"id": 8,
"name": "foobar",
"last_connection": "2017-04-18 11:22:33"
}
]
Is there is simple way to get an array of ids from all my robots without doing a for loop over my array?
ids = [1, 3, 8]