jsoniq-tutorial icon indicating copy to clipboard operation
jsoniq-tutorial copied to clipboard

Some sample code couldn't perform on Zorba normally

Open lhchingit opened this issue 7 years ago • 0 comments

Hi, I directly copy-and paste following sample code on Try Zorba but I got error.

let $person := {
  "name" : "Sarah",
  "age" : 13,
  "gender" : "female",
  "friends" : [ "Jim", "Mary", "Jennifer"]
}
return $person.friends[]

The error message showed (no URI):7,24: static error [err:XPST0003]: invalid expression: syntax error, unexpected "]". How could I fix this problem, thanks in advance.

lhchingit avatar Mar 01 '18 09:03 lhchingit