Serialization and Deserialization

What are they — and when are they used?

Patrick Divine
Better Programming
Published in
3 min readOct 15, 2019

--

Photo by Mika Baumeister on Unsplash

Serialization

Serialization converts an in-memory data structure to a value that can be stored or transferred.

Let’s say we have a users object in a JavaScript script that contains a total user count and a list of users, as follows:

const usersObject = {…

--

--