1. The following query returns the wrong result:

jsoniq version "1.0";

declare variable $doc1 :=
"
  {
    \"foo\" :  { \"name\" : \"moto\", \"price\" : 100 },
    \"boo\" :  { \"name\" : \"car\",  \"price\" : 1000 }
  }
";

(
let $v := exactly-one(jn:parse-json($doc1))
return
  if ($v.foo.name eq "moto")
  then
   $v
  else
   ()
).boo

2. You have now lost the dataguide that used to be produced in test 
dataguide-28.jq

-- 
https://code.launchpad.net/~zorba-coders/zorba/use-dataguide/+merge/176385
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
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