Thanks, Christian! Works perfectly :)
Tim
--
Tim A. Thompson (he, him)
Librarian for Applied Metadata Research
Yale University Library
From: Christian Grün
Date: Monday, October 23, 2023 at 12:19 PM
To: Thompson, Timothy
Cc: basex-talk@mailman.uni-konstanz.de
Subject: Re: [basex-talk] New escape-solidus option
Hi Tim,
A new snapshot is available [1]. Please note that you’ll need to write…
Test
=> serialize(map {
"escape-solidus": "no",
"method": "json",
"json": map {"format": "basic" }
})
…because “escape-solidus” is defined as a standard serialization parameter
(similar to “json-node-output-method”). It seems that will be the final
solution [2].
Hope this helps,
Christian
[1] https://files.basex.org/releases/latest/
[2] https://github.com/qt4cg/qtspecs/issues/759
On Fri, Oct 20, 2023 at 10:07 PM Thompson, Timothy
mailto:timothy.thomp...@yale.edu>> wrote:
Hello,
I was very happy to see that a new escape-solidus option had been defined for
XQuery/XPath 4.0. Is this available in the latest BaseX snapshot?
I tried this:
Test
=> serialize(map {"method": "json", "json": map {"format": "basic",
"escape-solidus": "no"}})
But it returns:
{"Escape\/Solidus":"Test"}
Thank you,
Tim
--
Tim A. Thompson (he, him)
Librarian for Applied Metadata Research
Yale University Library