jn:parse-json needs options and be able to handle sequences

Bug #1047547 reported by Matthias Brantner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Matthias Brantner

Bug Description

The jn:parse-json function needs to be adapted according to the JSONiq spec.

Quote spec:

This function has the same semantics as fn:parse-xml(), except that it parses the string as JSON (not XML), and returns an Object or Array rather than an XML document.
jn:parse-json($arg as xs:string?, $options as object()) as json-item()*
jn:parse-json($arg as xs:string?) as json-item()?
If $options is specified, the EBV of $options("jsoniq-multiple-top-level-items") is computed. If it is true, then jn:parse-json recognizes and parses sequences of objects and arrays, with no separation other than whitespaces.

Related branches

Changed in zorba:
status: New → In Progress
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.