Changes

Jump to navigation Jump to search
99 bytes added ,  23:07, 14 August 2011
no edit summary
[http://www.json.org/ JSON (JavaScript Object Notation)] is a popular data exchange format for applications written in JavaScript. This module contains [[Querying#Functions|XQuery functions]] to parse and serialize JSON documents. All functions are preceded by the <code>json:</code> prefix, which is linked to the <code><nowiki>http://www.basex.org/json</nowiki></code> namespace.
As there are notable differences between JSON and XML, no mapping exists that guarantees a lossless conversio, bidirectional conversion between JSON and XML. For this reason, we offer two sets of functions in this module: * [[JSON Functions#json:parse|json:parse()]] and [[JSON Functions#json:serialize|json:serialize()]] facilitate a lossless representation of JSON in XML and back, while * [[JSON Functions#json:parse-ml|json:parse-ml()]] and [[JSON Functions#json:serialize-ml|json:serialize-ml()]] are used to transform XML to JSON and back.
The proposed JSON functions will be available with <font color="red">Version 6.7.2</font> or <font color="red">6.8</font> of BaseX.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu