When you use Filesystem the JSON file is saved in the user PC, in order to do that you need to set the directory that you want to use for saving the file I do like this. For set up the directory
And this when i collect some item then update the file
And this for load the saved file into a variable