| '''Summary'''
|Converts the JSON document specified by {{Code|$input}} to XML, and returns the result as {{Code|element(json)}} instance. The converted XML document is both well readable and lossless, i.e., the converted document can be serialized back to the original JSON representation.<br/>The {{Code|$options}} argument can be used to control the way the input is converted. The following options are available (they bear resemblance to the one specified in [http://www.w3.org/TR/xslt-30/#json XSLT 3.0]):
* {{Code|spec}} determines the used JSON specification. Allowed values are {{Code|RFC4627}}, {{Code|ECMA-262}}, and {{Code|liberal}}; the default is ({{Code|RFC4627}}).
* {{Code|unescape}} determines whether escape sequences (marked by a backslash) in the input are expanded. The default is {{Code|true}}.
* {{Code|format}} determines the conversion format. Allowed values are {{Code|json}}, {{Code|jsonml}}, and {{Code|map}}; the default is {{Code|true}}.
* as children of an {{Code|<csv:options/>}} element; e.g.:
<pre class="brush:xml">
<csvjson:options> <csvjson:separator spec value=';liberal'/>
...
</csvjson:options>
</pre>
* or as map, which contains all key/value pairs:
<pre class="brush:xquery">
{ 'separatorspec' : ';liberal', ... }
</pre>
|-