Protocols
Saved & recent

Serialization

Also called: serialisation, deserialization, encoding

Serialization turns structured data into a representation that can be stored or transmitted. Deserialization interprets that representation on the other side. A format such as JSON specifies how values are written; a protocol must additionally define what the fields mean and which messages are allowed.

For example, an application might encode a temperature reading as {"celsius":21} using UTF-8 JSON. The receiver still needs the agreement that this number is a temperature in Celsius. Serialization is neither encryption nor message framing, and converting an object to JSON does not automatically preserve every programming-language type.

Read first
Protocol
Related
Message framing, Protocol, Concise Binary Object Representation, MessagePack
Further reading
IETF RFC 8259 — The JavaScript Object Notation (JSON) Data Interchange Format
celsius 21 celsius 21 encode decode {"celsius":21} temperature object reconstructed object 7b 22 63 65 6c 73 69 75 73 22 3a 32 31 7d UTF-8 bytes · hexadecimal application field agreement celsius represents degrees Celsius
Illustrative reading: JSON carries the value; the application’s field agreement gives it a unit and meaning.

View in the full Protocols collection