unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16373: 24.3; json-encodes escapes / in strings
@ 2014-01-06 16:05 Leo Liu
  2015-10-04 12:11 ` Simen Heggestøyl
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Liu @ 2014-01-06 16:05 UTC (permalink / raw)
  To: 16373

(json-encode "/") -> "\"\\/\""

this makes path names look really ugly. Is it required?

Leo





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#16373: 24.3; json-encodes escapes / in strings
  2014-01-06 16:05 bug#16373: 24.3; json-encodes escapes / in strings Leo Liu
@ 2015-10-04 12:11 ` Simen Heggestøyl
  0 siblings, 0 replies; 2+ messages in thread
From: Simen Heggestøyl @ 2015-10-04 12:11 UTC (permalink / raw)
  To: Leo Liu; +Cc: 16373-done

Leo Liu <sdl.web@gmail.com> writes:
> (json-encode "/") -> "\"\\/\""
>
> this makes path names look really ugly. Is it required?
>
> Leo

This was fixed in 58c86059.

To answer your question: it's not required (but permitted) that you
escape / in strings. See the "string" section at http://json.org/.

-- Simen





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-04 12:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 16:05 bug#16373: 24.3; json-encodes escapes / in strings Leo Liu
2015-10-04 12:11 ` Simen Heggestøyl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).