|- valign="top"
| <code>method</code>
| Specifies the serialization method. If "<code>json" </code> is specified, the XML document must conform to the BaseX [[JSON Functions|JSON syntax]].
| <code>xml,xhtml,html, text,json</code>
| <code>xml</code>