Json.dump() stuff doesn't appear in x.json file

Hello!
So, I’m wondering, why doesn’t data store into some x.json file. Basically, I’m making my Discord bot with python and if I test it on PC locally, it works fine and data appears in x.json file, but on glitch, it doesn’t. I don’t get any errors either …

Example:

with open("users.json", "w") as f:
    json.dump(users, f)

Is there any way to fix this?
Thank you!

It could be the editor not syncing. Run refresh in the console and it will re-sync all files.

i suggest you to check if the json is still valid. use json fixer to check the json file status

1 Like