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:map <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
Hi Tim,
You are really on the cutting edge :) I’ll upload a new snapshot with the new option in a few days; I will keep you posted.
Best, Christian
Thompson, Timothy timothy.thompson@yale.edu schrieb am Fr., 20. Okt. 2023, 22:07:
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
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
Thanks, Christian! Works perfectly :)
Tim
-- Tim A. Thompson (he, him) Librarian for Applied Metadata Research Yale University Library
From: Christian Grün christian.gruen@gmail.com Date: Monday, October 23, 2023 at 12:19 PM To: Thompson, Timothy timothy.thompson@yale.edu Cc: basex-talk@mailman.uni-konstanz.de 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…
fn:map <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.edumailto: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:map <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
basex-talk@mailman.uni-konstanz.de