Serialization and Deserialization - Saving values and items

Anyone know how to set up serialization and deserialization?

Since you can create and destroy items at runtime, I think it should be set up dynamic, right?

Is there a way to iterate over all existing items? Since items can be created and destroyed, I guess you would have to serialize and deserialize the creation and destruction as well?

I'm pretty new at this, so any help would be appreciated!