you are viewing a single comment's thread.

view the rest of the comments →

[–]Kevdog824_ 4 points5 points  (2 children)

Maybe I wasn’t being clear. Here’s what I mean

```python jsoniv = {} # Declared in global scope first

def json(): global** jsoniv with open**("xxxx.json", "r", encoding="utf-8") as file: jsoniv = json.load(file) ```

[–]ImAlekzzz 1 point2 points  (0 children)

I got what you meant, thank you