Is there a way to save 'everything' about the state of a map in a player save?

I’m working on a sandbox game, and there will be a tremendous amount of items and states to save when the map is saved. So much so that creating an array to save the state and position of every type of item seems like a very inefficient way to approach it.

Is there a way to save the state of the level in memory holistically without specifically tracking the state of every possible variable directly?