[Zorba-coders] [Bug 920721] Re: json 2.0 bug: wrong behavior for parsing empty value

2012-03-27 Thread Paul J. Lucas
** 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/920721 Title: json 2.0 bug: wrong behavior for parsing empty value Status in Zor

[Zorba-coders] [Bug 920721] Re: json 2.0 bug: wrong behavior for parsing empty value

2012-01-25 Thread Paul J. Lucas
** Changed in: zorba Status: New => Fix Committed -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/920721 Title: json 2.0 bug: wrong behavior for parsing empty value Status in Zorba - The

[Zorba-coders] [Bug 920721] Re: json 2.0 bug: wrong behavior for parsing empty value

2012-01-23 Thread Chris Hillery
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. http://tools.ietf.org/html/rfc4627 So an empty string is not a valid instance of JSON. -- You received this bug notification because you are a member of Zorba Coders, whic

[Zorba-coders] [Bug 920721] Re: json 2.0 bug: wrong behavior for parsing empty value

2012-01-23 Thread Paul J. Lucas
What specification tells you that parsing an empty value should return an error? Why isn't returning nothing valid? -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/920721 Title: json 2.0 bug: wro

[Zorba-coders] [Bug 920721] Re: json 2.0 bug: wrong behavior for parsing empty value

2012-01-23 Thread Paul J. Lucas
These functions are declared as taking an xs:string? as an argument. If one is able to pass something like (which is not a string), then it points to a bug elsewhere in the code, i.e., something should have checked that the actual argument type doesn't match the declared argument type -- right? I

[Zorba-coders] [Bug 920721] Re: json 2.0 bug: wrong behavior for parsing empty value

2012-01-23 Thread Paul J. Lucas
Renamed the tests to conform to all the rest, i.e., contain "parse" or "serialize" in the test name. Also, again, the second test is invalid XQuery since it's missing a "return". -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. htt