Log in / create account | Login with OpenID
DocForge
An Open Wiki For Software Developers

Serialization

From DocForge

Serialization is the process of turning structured data into a single stream of information, usually for data storage or transmission purposes.

Examples:

  • JSON converts JavaScript objects to and from strings for transmission between a web browser and web server.
  • The PHP global session array is converted to a single string for long term storage on disk, or elsewhere, such as a database, with custom code.

Deserialization is the reverse of serialization, converting a single stream back into structured data.

See Also [edit]