Article View: comp.lang.lisp
Article #44Re: on cl-json and slashes
From: Lawrence D’Oliveiro
Date: Mon, 16 Nov 2026 22:58
Date: Mon, 16 Nov 2026 22:58
19 lines
1954 bytes
1954 bytes
On Mon, 16 Nov 2026 17:11:53 -0300, Anton Antimo wrote: > It seems cl-json is automatically escaping slashes when I invoke > encode-json-to-string. I located the question > > https://stackoverflow.com/questions/60103909 > > that explains that the JSON spec mandates the escaping of slashes ... The text of RFC8259 says “Any character may be escaped”. The grammar shows slash among those characters in the “escape” set, and a few others, including the uXXXX codes, but not “any [literal] character”. So it would appear the formal grammar doesn’t allow the escaping of other characters, even though the text says they can be. I would say that part of the formal grammar is wrong. You’re worried about unnecessary escapes, but you shouldn’t be, since the result is still valid JSON.
Technical Details
Message-ID:
<11dg1qo$3veh5$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<87jymcbkom.fsf@safunu.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.lisp Subject: Re: on cl-json and slashes Date: Mon, 16 Nov 2026 22:58:33 -0000 (UTC) Organization: A noiseless patient Spider Lines: 19 Message-ID: <11dg1qo$3veh5$1@dont-email.me> References: <87jymcbkom.fsf@safunu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 16 Nov 2026 22:58:33 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4176421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iEgbN08K4cwPlC/uVzrWR"; posting-host="5dd2fbbcc39e8b04fb19accc0b41ca1a" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:xt0cCCdoFfHIlvi9gzIEqzz7A8Y= sha256:9xHZlE6ONaXjAIB2TcfRedrcNZ3g15FICPqhGwW88g0= sha1:YRl2Zw8agVU7r5oFGOtsoV6lBZM= sha256:Sn1KWy+WgXGNT9vazkv64xMdzxzRbP8XcrAdqzqIkZ8=