Bot doesn't want to save variables in Glitch

As the title says, I have problems saving a variables to the JSON file. When I start the bot locally on the computer, the bot saves in the JSON file without any problem, but when I start the bot on Glitch, the bot doesn’t save the data to the JSON. What should I do?
ps. sorry for my english

The Glitch editor and your code don’t sync. So any data created/saved by your code will still be saved but won’t show up in the editor. In order for it to show in the editor you need to run refresh in the Console (Tools —> Logs —> Console)

Thanks, its working. But I have another question: Can I make auto refresh script in Glitch?

I mean auto refresh per x hour.