Comment 7 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 := '{ "action": "GET /html/index", "public": true, "opt": [1, 2, {"foo": "bar"}]}'
let $json := json:parse($json)
return json:serialize($json)

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

I think that this result is not correct.