The process whereby an object or data structure is translated into a format suitable for transfer over a network, or storage (e.g. in an array buffer or file format).

In JavaScript, for example, you can serialize an object to a JSON string by calling the function JSON.stringify().

CSS values are serialized by calling the function CSSStyleDeclaration.getPropertyValue().

See also