27 Feb
2020
27 Feb
'20
7:49 a.m.
Hi, I'm trying to deactivate the escaping of characters for JSON serialization. It does not work with this: let $json := <map xmlns="http://www.w3.org/2005/xpath-functions"> <string key="url">http://some.url/path/to/somewhere</string></map> return json:serialize($json, map {'format' : 'basic', 'escape': 'no'}) Output: { "url":"http:\/\/some.url\/path\/to\/somewhere" } If I use the other JSON format it works: json:serialize(<json type='object'><url>http://some.url/path/to/somewhere</url></json>, map { "escape" : "no"}) Output: { "url":"http://some.url/path/to/somewhere" } Is the "escape" parameter not supported for the basic format? Best regards Johannes