This commit is contained in:
confestim 2023-05-21 15:11:24 +02:00
parent 05ed4be9ff
commit c0a2f9880d
2 changed files with 10 additions and 0 deletions

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# Test data
1. Open file with `with open("filename", "r") as f:`
2. Reach data like `data["<key_name>"]`

6
main.py Normal file
View File

@ -0,0 +1,6 @@
import json
with open("example_game.json", "r") as f:
data = json.load(f)
print([x["player"]["summonerName"] for x in data["participantIdentities"]])