* {{Code|map:size(map:new())}} returns {{Code|0}}.
* <code>map:size(map{ "true":=1, "false":=0 })</code> returns {{Code|2}}.
|}
==map:serialize==
{{Mark|Introduced with Version 7.8:}}
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|map:serialize|$map as map(*)|xs:string}}<br/>
|-
| '''Summary'''
| Returns a string representation of the supplied map. The returned string helps to understand the structure of a map item; it cannot be used for reconstructing the serialized map.
|-
| '''Examples'''
|
* <code>map:serialize(map { 'A' := (.1, xs:date('2001-01-01')) })</code> returns <code>{ "A": (0.1, "2001-01-01") }</code>.
|}