1
(: valid json generation: comments should be ignored :)
3
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
4
import schema namespace html-options="http://www.zorba-xquery.com/modules/converters/json-options";
6
declare variable $local:json :=
8
<pair name="servlet" type="array">
10
<item type="string">value</item>
14
json:serialize($local:json,<options xmlns="http://www.zorba-xquery.com/modules/converters/json-options" >
15
<json-param name="mapping" value="simple-json" />