From c0a2f9880d231022b9141772f039c28c8650e159 Mon Sep 17 00:00:00 2001 From: confestim Date: Sun, 21 May 2023 15:11:24 +0200 Subject: [PATCH] tes --- README.md | 4 ++++ main.py | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 README.md create mode 100644 main.py 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