|-
| valign='top' | '''Summary'''
|Serializes the node specified by <code>$input</code> as JSON, and returns the result as <code>xs:string</code> instance. The serialized node must conform to the syntax specified by the [[JSON Functions#json:parse|json:parse()]] function.<br />XML documents in the JSON format can also be serialized if the [[Serialization]] option <code>method</code> is set to <code>json</code>.
|-
| valign='top' | '''Errors'''