zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #03988
[Bug 920722] [NEW] json 2.0 bug: comment nodes should be ignored by json:serialize
Public bug reported:
Comment nodes should be ignored by json:serialize function: please see failing tests:
- test/rbkt/zorba/json/json-snelson-serialize-object-03
- test/rbkt/zorba/json/json-snelson-serialize-array-12
For instance, test json-snelson-serialize-object-03:
import module namespace json = "http://www.zorba-
xquery.com/modules/converters/json";
let $json :=
<json type="object">
<!--comment-->
<pair name="a" type="number">1</pair>
<!--comment-->
</json>
return json:serialize( $json )
returns
{,"a":1,}
instead of
{"a":1}
** Affects: zorba
Importance: Medium
Assignee: Paul J. Lucas (paul-lucas)
Status: New
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/920722
Title:
json 2.0 bug: comment nodes should be ignored by json:serialize
Status in Zorba - The XQuery Processor:
New
Bug description:
Comment nodes should be ignored by json:serialize function: please see failing tests:
- test/rbkt/zorba/json/json-snelson-serialize-object-03
- test/rbkt/zorba/json/json-snelson-serialize-array-12
For instance, test json-snelson-serialize-object-03:
import module namespace json = "http://www.zorba-
xquery.com/modules/converters/json";
let $json :=
<json type="object">
<!--comment-->
<pair name="a" type="number">1</pair>
<!--comment-->
</json>
return json:serialize( $json )
returns
{,"a":1,}
instead of
{"a":1}
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/920722/+subscriptions
Follow ups
References