Hi Tim,
A new snapshot is available [1]. Please note that you’ll need to write…
<fn:string key="Escape/Solidus">Test</fn:string>
</fn:map> => 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 < timothy.thompson@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:
<fn:string key="Escape/Solidus">Test</fn:string>
</fn:map> => 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