This project gives an example of how to save and load a game's state in Godot using resources and JSON.
For a detailed guide to get you started with saving and loading in Godot, check out the GDQuest Library: Saving and loading games in Godot 4 (with resources)