Changes

Jump to navigation Jump to search
294 bytes removed ,  19:56, 23 May 2014
no edit summary
==Conversion Formats==
 
The JSON conversion rules have been updated with {{Version|7.8}}:
===Direct===
** Empty names are represented by a single underscore ({{Code|_}}). Existing underscores are rewritten to two underscores ({{Code|__}}), and characters that are not valid in element names are rewritten to an underscore and the character’s four-digit Unicode.
** If the {{Code|lax}} option is set to {{Code|false}}, invalid characters are simply replaced with underscores or (when invalid as first character of an element name) prefixed with an underscore. The resulting names are better readable, but cannot always be converted back to their original form.
* Array entries are also represented via elements. {{Code|_}} is used as element name (before {{Version|7.8}}, the element was named {{Code|value}}).
* Object and array values are stored in text nodes.
* The types of values are represented via {{Code|type}} attributes:
==json:parse==
 
{{Version|7.8}}: the function now returns a document node instead of an element, or an XQuery map if the {{Code|map}} format is used. New options have been added.
{| width='100%'
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu