What is “serialization”?
From Latin noun “seriēs” — a row, a succession, a series, a sequence.
So, it’s a process of creating a sequence of some kind.
Serialization in Ruby
Serialization is the process of writing data of an object to a sequence of bytes. The inverse process of reading stream into an object is called Deserialization. This is very useful when you want to preserve state of an object, and then retrieve it later. Serialization can be done in Ruby via a class called Marshal.
Serialization in Rails
Serialization converts an object in memory into a stream of bytes that can be recreated when needed. Serializers in Ruby on Rails convert a given object into a JSON format.