my question is about this list that i have. In the list are 2 things: "meta-data" and "players" in "players" is "all_players". Now i want to get the Player Name and Player Team but i dont know how i can do this. i can do data["data"][i]['players']['all_players'][{name}] but then i only have the name, and i cant get the team when i dont know which player the team i should get.
Here is my List:
{
"data": [
{
"metadata": {
"map": "Breeze",
"game_length": 1702289,
"game_start": 1657464507,
"game_start_patched": "Sunday, July 10, 2022 4:48 PM",
"rounds_played": 20,
"mode": "Competitive",
"queue": "Standard",
"platform": "PC",
"region": "eu",
"cluster": "London"
},
"players": {
"all_players": [
{
"puuid": "70f7373a-ba78-5c9a-a963-767fbf27d9ad",
"name": "Player 1",
"team": "Blue"
},
{
"puuid": "70f7373a-ba78-5c9a-a963-767fbf27d9ad",
"name": "Player 2",
"team": "Blue"
},
{
"puuid": "70f7373a-ba78-5c9a-a963-767fbf27d9ad",
"name": "Player 3",
"team": "Red"
},
]}
}]
}
This is only a small part, where things are what i want to have. The List is way longer but its unnecessary for this part This List or Data is from a JSON.