json 2.0 bug: array and object closed prematurely in json:parse
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Paul J. Lucas |
Bug Description
the items object and array are closed prematurely when json:parse is called.
Please see added tests:
- json-snelson-
- json-snelson-
For instance the result of test json-snelson-
import module namespace json = "http://
json:parse('[
{
"firstName": "John",
"lastName": "Smith",
"address": {
"
"city": "New York",
"state": "NY",
"postalCode": 10021
},
"phoneNumbers": [
"212 732-1234",
"646 123-4567"
]
},
{
"firstName": "John",
"lastName": "Smith",
"address": {
"
"city": "New York",
"state": "NY",
"postalCode": 10021
},
"phoneNumbers": [
"212 732-1234",
"646 123-4567"
]
}]')
is
<json xmlns="http://
instead of:
<json xmlns="http://
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |