--- title: marshal --- To transform a data structure into a serialized object. For example, transforming a [map](g) into a JSON string. See [unmarshal](g).