zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #04801
[Bug 930573] [NEW] JSON module serialization problem
Public bug reported:
The following query:
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
import module namespace file = "http://expath.org/ns/file";
let $tweet := file:read-text("tweet.json")
let $tweet := json:parse($tweet)
let $tweet := json:serialize($tweet)
return
$tweet
Where tweet.json (in attachement) comes from the twitter stream API,
returns:
JSON serialization error [zerr:ZJSE0005]: "pair": illegal child element of "array" type; must be "item"
=================================================
json:serialize#1 <http://www.zorba-xquery.com/modules/converters/json>
/parse.xq at line 6 column 15
** Affects: zorba
Importance: High
Assignee: Paul J. Lucas (paul-lucas)
Status: New
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930573
Title:
JSON module serialization problem
Status in Zorba - The XQuery Processor:
New
Bug description:
The following query:
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
import module namespace file = "http://expath.org/ns/file";
let $tweet := file:read-text("tweet.json")
let $tweet := json:parse($tweet)
let $tweet := json:serialize($tweet)
return
$tweet
Where tweet.json (in attachement) comes from the twitter stream API,
returns:
JSON serialization error [zerr:ZJSE0005]: "pair": illegal child element of "array" type; must be "item"
=================================================
json:serialize#1 <http://www.zorba-xquery.com/modules/converters/json>
/parse.xq at line 6 column 15
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930573/+subscriptions
Follow ups
References