zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #04658
[Bug 928710] [NEW] No way to populate JSON array with atomic values via store API
Public bug reported:
If you are creating JSON items via the store API, the only way to add
members to an array is to use the "no-copy copy()" trick, calling copy()
on the member Item and passing a store::CopyMode with theDoCopy set to
false.
However, copy() is not implemented for Items of atomic types (at least
integer and string), so there is no way at all to create a JSON array
with strings or integers as members. This of course means there's no way
to do it with the public C++ API either.
** Affects: zorba
Importance: Critical
Assignee: Markos Zaharioudakis (markos-za)
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/928710
Title:
No way to populate JSON array with atomic values via store API
Status in Zorba - The XQuery Processor:
New
Bug description:
If you are creating JSON items via the store API, the only way to add
members to an array is to use the "no-copy copy()" trick, calling
copy() on the member Item and passing a store::CopyMode with theDoCopy
set to false.
However, copy() is not implemented for Items of atomic types (at least
integer and string), so there is no way at all to create a JSON array
with strings or integers as members. This of course means there's no
way to do it with the public C++ API either.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/928710/+subscriptions
Follow ups
References