zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #03748
[Bug 918151] [NEW] JSON serializer should disallow mixed JDM/XDM
Public bug reported:
Based on the first item in the sequence being serialized, the default
serializer (currently xml_emitter) should either output only JSON items,
or only XDM items. It should raise an error if a mixed sequence is
detected. It should also suppress the XML version declaration for JSON
sequences.
Ideally there would be some internally flag (or possibly an alternate
serialization method, eg. -z method=mixed) to allow serialization of
mixed sequences for testing purposes, even though such output would be
neither valid XML nor valid JSON.
** Affects: zorba
Importance: Medium
Assignee: Chris Hillery (ceejatec)
Status: Triaged
** Changed in: zorba
Milestone: None => 3.0
** Changed in: zorba
Importance: Undecided => Medium
** Changed in: zorba
Assignee: (unassigned) => Chris Hillery (ceejatec)
** Changed in: zorba
Status: New => Triaged
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/918151
Title:
JSON serializer should disallow mixed JDM/XDM
Status in Zorba - The XQuery Processor:
Triaged
Bug description:
Based on the first item in the sequence being serialized, the default
serializer (currently xml_emitter) should either output only JSON
items, or only XDM items. It should raise an error if a mixed sequence
is detected. It should also suppress the XML version declaration for
JSON sequences.
Ideally there would be some internally flag (or possibly an alternate
serialization method, eg. -z method=mixed) to allow serialization of
mixed sequences for testing purposes, even though such output would be
neither valid XML nor valid JSON.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/918151/+subscriptions
Follow ups
References