Save/Restore Script with JSON files