The query works with the tweet.json you attached.

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

  JSON module snelson parsing problem

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The following query:

  import module namespace json = 
  import module namespace file = "";;

  let $tweet := file:read-text("tweet.json")
  let $tweet := json:parse($tweet)
  let $tweet := json:serialize($tweet)

  Where tweet.json (in attachement) comes from the twitter stream API,

  JSON serialization error [zerr:ZJSE0005]: "pair": illegal child element of 
"array" type; must be "item" 
  json:serialize#1 <> 
  /parse.xq at line 6 column 15

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to