chore: load players.json via orjson
This commit is contained in:
1 parent
c8867a68e6
commit
89d8177180
1 file changed
+2
-2
@@ -1,9 +1,9 @@
|
||||
import json
|
||||
import orjson as json
|
||||
|
||||
|
||||
def main():
|
||||
with open("players.json", "r", encoding="utf-8") as f:
|
||||
d = json.load(f)
|
||||
d: list[dict[str, int | str]] = json.loads(f.read())
|
||||
print(d[-1]["userId"])
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user