Comment 9 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"}, null, false, true]}'
let $json := json:parse($json)
return json:serialize($json)

Returns:
JSON serialization error [zerr:ZJSE0005]: "item": illegal child element of "object" type; must be "pair"