Resource files can execute arbitrary scripts. The baddies could trick players into using save files with malicious scripts. This should be avoided. Saving the state into JSON is probably the move.