Changes

Jump to navigation Jump to search
703 bytes added ,  15:45, 14 August 2011
no edit summary
## String and object types are omitted as they are treated as default types for flat elements and and nested elements with/without names.
## If a key has the same type throughout the whole document, the type attribute will be omitted. Instead, the key will be listed in additional, type-specific attributes in the root node. The attributes are named by their type (number, boolean, null or array) and will contain all relevant keys as value, separated by whitespaces.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#JSON Errors (FOJS)|FOJS0001]]</b> is raised if the specified input cannot be parsed as JSON document.
|}
 
==json:serialize==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>json:serialize</b>($input as node()) as xs:string()</code>
|-
| 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 [[JSON Functions#json:parse]].
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#JSON Errors (FOJS)|FOJS0002]]</b> is raised if the specified node cannot be serialized as JSON document.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu