Your event sheet has two mistakes:
- By default local variables are reset every tick, so SaveText will get cleared while the picker dialog is open. You need to make SaveText static so it preserves its value, or make it a global variable. Then saving works providing you enable the action to set SaveText to SaveStateJSON.
- Loading doesn't work because the open picker tag is the same as the save picker tag ("mysave"), so when opening a file it will also try to save to it. Use a different picker tag like "myload".