How do I get only the id
and key
?
{
"type": "champion",
"version": "6.3.1",
"data": {
"1": {
"id": 1,
"key": "Annie",
"name": "Annie",
"title": "a Criança Sombria",
"info": {
"attack": 2,
"defense": 3,
"magic": 10,
"difficulty": 6
}
},
"2": {
"id": 2,
"key": "Olaf",
"name": "Olaf",
"title": "o Berserker",
"info": {
"attack": 9,
"defense": 5,
"magic": 3,
"difficulty": 3
}
},
"3": {
"id": 3,
"key": "Galio",
"name": "Galio",
"title": "o Sentinela da Amargura",
"info": {
"attack": 3,
"defense": 7,
"magic": 6,
"difficulty": 3
}
}
}
The array is in the variable content
, using {{content.data[1]}}
to get this:
{
"id": 1,
"key": "Annie",
"name": "Annie",
"title": "a Criança Sombria",
"info": {
"attack": 2,
"defense": 3,
"magic": 10,
"difficulty": 6
}
}
But I would like to capture only id
and key
. How can I do this?