** Changed in: zorba
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/920719

Title:
  json 2.0 bug: array and object closed prematurely in json:parse

Status in Zorba - The XQuery Processor:
  Fix Released

Bug description:
  the items object and array are closed prematurely when json:parse is called.
  Please see added tests:
  - json-snelson-parse-array-06
  - json-snelson-parse-array-07

  For instance the result of test  json-snelson-parse-array-06:

  import module namespace json = "http://www.zorba-
  xquery.com/modules/converters/json";

  json:parse('[
  {
    "firstName": "John",
    "lastName": "Smith",
    "address": {
        "streetAddress": "21 2nd Street",
        "city": "New York",
        "state": "NY",
        "postalCode": 10021
    },
    "phoneNumbers": [
        "212 732-1234",
        "646 123-4567"
    ]
  },
  {
    "firstName": "John",
    "lastName": "Smith",
    "address": {
        "streetAddress": "21 2nd Street",
        "city": "New York",
        "state": "NY",
        "postalCode": 10021
    },
    "phoneNumbers": [
        "212 732-1234",
        "646 123-4567"
    ]
   }]')

  is

  <json xmlns="http://john.snelson.org.uk/parsing-json-into-xquery";
  type="array"><item type="object"></item> [...] </json>

  instead of:

  <json xmlns="http://john.snelson.org.uk/parsing-json-into-xquery";
  type="array"><item type="object"> [...] </item> [...] </json>

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/920719/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to