jn:parse-json needs options and be able to handle sequences
Bug #1047547 reported by
Matthias Brantner
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(
Related branches
lp:~zorba-coders/zorba/bug-1047547
- Ghislain Fourny: Approve
- Matthias Brantner: Approve
-
Diff: 30104 lines (+29756/-57)27 files modifiedChangeLog (+4/-2)
include/zorba/pregenerated/diagnostic_list.h (+4/-0)
modules/org/jsoniq/www/functions.xq (+38/-8)
modules/org/jsoniq/www/pregenerated/errors.xq (+11/-1)
src/diagnostics/diagnostic_en.xml (+14/-0)
src/diagnostics/pregenerated/diagnostic_list.cpp (+6/-0)
src/diagnostics/pregenerated/dict_en.cpp (+7/-0)
src/functions/pregenerated/func_jsoniq_functions.cpp (+19/-2)
src/functions/pregenerated/function_enum.h (+1/-0)
src/runtime/json/jsoniq_functions_impl.cpp (+119/-34)
src/runtime/json/pregenerated/jsoniq_functions.cpp (+3/-1)
src/runtime/json/pregenerated/jsoniq_functions.h (+21/-3)
src/runtime/spec/json/jsoniq_functions.xml (+20/-2)
test/rbkt/ExpQueryResults/zorba/jsoniq/parse_json-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/jsoniq/parse_json-05.xml.res (+1/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-01.xq (+3/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-02.spec (+1/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-02.xq (+2/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-03.spec (+1/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-03.xq (+2/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-04.spec (+1/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-04.xq (+2/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-05.xq (+4/-0)
test/rbkt/Queries/zorba/jsoniq/parse_json-06.xq (+1/-0)
test/rbkt/Queries/zorba/jsoniq/parser_01.spec (+0/-1)
test/rbkt/Queries/zorba/jsoniq/parser_01.xq (+0/-3)
test/rbkt/Queries/zorba/jsoniq/zips.json (+29470/-0)
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.