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