The JSON grammar is not as pedantic as I would like, but it looks like a
JSON text must be exactly an object or an array.

So an empty string is not a valid instance of JSON.

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  json 2.0 bug: wrong behavior for parsing empty value

Status in Zorba - The XQuery Processor:

Bug description:
  Parsing an empty value has wrong behavior for both JSON mappings (Snelson and 
  Please see failing tests:
  - test/rbkt/zorba/json/json-snelson-empty-value
  - test/rbkt/zorba/json/json-jsonml-empty-value

  For instance in zorba/json/json-snelson-empty-value.xq:

  import module namespace json = 

  Should raise error(s)
  But instead Zorba returns a result.

  For test/rbkt/zorba/json/json-jsonml-empty-value.xq:

  import module namespace json = 
  let $options :=
      <json-format value="JsonML-array"/>

  Zorba returns
  instead of

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to