What is the most simple way to serialize a list?

I’ve been struggling with weird exceptions and errors trying to serialize a genetic list of a custom type since last week. People are talking about writing your own serialization class but I have no experience related to serialization. Any ideas?

P.S Please don’t recommend plugins. I only want to learn the essence of serializing lists, dictionaries etc.

This takes a bit of reading to fully understand.

Here’s an article to get you started: