diff --git a/README.md b/README.md new file mode 100644 index 0000000..96f6554 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Test data + +1. Open file with `with open("filename", "r") as f:` +2. Reach data like `data[""]` \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..cec31c3 --- /dev/null +++ b/main.py @@ -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"]]) \ No newline at end of file