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>
The following query: www.zorba- xquery. com/modules/ converters/ json";
import module namespace json = "http://
let $json := '{ "action": "GET /html/index", "public": true, "opt": [1, 2, {"foo": "bar"}]}' $json)
let $json := json:parse($json)
return json:serialize(
Returns: 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 ======= ======= ======= ======= ======= ======= www.zorba- xquery. com/modules/ converters/ json>
URI_PATH/
=======
json:serialize#1 <http://
I think that this result is not correct.