Relaxed JSON navigation
Bug #1184601 reported by
Ghislain Fourny
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
High
|
Markos Zaharioudakis |
Bug Description
The JSONiq and JSONiq extension to XQuery specifications were updated to relax JSON navigation and make it more XPath-like, i.e., (1) no more casts are done, and (2) the empty sequence is returned in case (i) a string lookup is done on an array or atomic, or (ii) an integer lookup is done on an object or atomic.
This should now be implemented in Zorba.
Changed in zorba: | |
assignee: | nobody → Markos Zaharioudakis (markos-za) |
milestone: | none → 3.0 |
Changed in zorba: | |
status: | New → Fix Committed |
To post a comment you must log in.
Also, keys() and members() should support item* as a parameter, iterate on their input, producing empty sequences for incompatible items (atomics, arrays for keys(), atomics, objects for members()) and raising errors if there is a function. keys() should also perform a distinct-values() call on the keys produced in the case of several objects.