Changes

Jump to navigation Jump to search
401 bytes added ,  15:17, 30 October 2014
no edit summary
==json:serialize==
 
{{Mark|Updated with BaseX 8.0}}: Aligned with [[http://docs.basex.org/wiki/XQuery_3.1#Serialization|XQuery 3.1 Serialization]]
{| width='100%'
|-
| '''Summary'''
|Serializes the node specified by {{Code|$input}} as JSON, and returns the result as {{Code|xs:string}} instance. The serialized node must is expected to conform to the syntax specified output created by the [[#json:parse|json:parse()]] function. All other items will be serialized as specified in the json output method of the [http://www.w3.org/TR/xslt-xquery-serialization-31/ official specification].<br />Items can also be serialized as JSON if the [[Serialization|Serialization Parameter]] {{Code|method}} is set to {{Code|json}}.<br/>The {{Code|$options}} argument can be used to control the way the input is serialized.
|-
| '''Errors'''
;Version 8.0
* Updated: Serialization aligned with [[http://docs.basex.org/wiki/XQuery_3.1#Serialization|XQuery 3.1]] requirements
* Added: {{Code|liberal}} option
* Removed: {{Code|spec}} option
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu