|- 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:parse|JSON syntax]].
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>
| <code>xml</code>