|- valign="top"
| <code>method</code>
| Specifies the serialization method. <code>json</code> and <code>jsonml</code> has have been added with <font color="red">Version 6.7.2</font> of BaseX (see [[JSON Functions]] for more details).
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>, <code>jsonml</code>
| <code>xml</code>