fonto:serialize-as-jsonml

Serializes a node as JSONML, in XPath/XQuery.

Note: Make sure to import this function's namespace before calling this function. Refer to the example below on how to do this.

XQuery

import module namespace fonto = "http://www.fontoxml.com/functions";
fonto:serialize-as-jsonml($node)