← Back to team overview

zorba-coders team mailing list archive

Re: [Merge] lp:~zorba-coders/zorba/fix-1046415 into lp:zorba

 

Hi Cezar,

In general, an object constructor expression is not always valid JSON, as it is more general. For example, { 1 : 1 } is valid JSONiq although it is not valid JSON. A key expression, can be anything, and will be atomized and cast to xs:string.

Also, { "null" : 1 } (which is what is produced) is valid JSON, just like { "1" : 1 }.

Accepting { null : 1 } in the same way makes the specification simpler, as we need not special-case.

Does it make sense?
-- 
https://code.launchpad.net/~zorba-coders/zorba/fix-1046415/+merge/123283
Your team Zorba Coders is subscribed to branch lp:zorba.


Follow ups

References