Skip to content

What is serialization and normalization?

BowlOfSoup edited this page Sep 16, 2020 · 1 revision

When serializing an object, we're converting it into a common format. It consists of two steps, normalization and encoding normalized data.

Serialization of an object is visualized on the right side of the above visual.

visual_diagram

(Source: Symfony Serializer)

You can call each step separately (normalize, encode) or directly serialize an entire object.