serialization
Serialization is the process of converting an in-memory object or data structure into a format that can be stored, transmitted, and subsequently reconstructed. Deserialization is the inverse operation. The serialized form may be textual, such as JSON, XML, or YAML, or binary, such as Protocol Buffers, MessagePack, Avro, Thrift, or BSON. Text formats are human-readable and typically easier to debug, while binary formats are often more compact and faster to parse.
Serialization serves several purposes: persistence to disk or databases, inter-process and inter-system communication, remote procedure calls,
Some formats are language-specific (for example, Java object serialization, Python pickle, or .NET binary serialization) and
Security and compatibility are important concerns. Deserialization can be vulnerable to remote code execution if untrusted
Common use cases include REST APIs that return JSON, message queues that use binary formats for efficiency,