chore: load players.json via orjson
This commit is contained in:
@@ -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