Comment 14 for bug 920717

Revision history for this message
William Candillon (wcandillon) wrote :

The following query:
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";

let $json := doc("tweet.json")
return json:serialize($json)

Where tweet.json is the result from json:parse() (the file is attached).

Returns:
json.xq>:196,3: JSON serialization error [zerr:ZJSE0007]: JSON type "object" can not have a child text node
=================================================
json:serialize#1 <http://www.zorba-xquery.com/modules/converters/json>