GNU bug report logs - #20502
24.4; json-pretty-print escapes forward slashes in strings

Previous Next

Package: emacs;

Reported by: Martin Algesten <martin <at> algesten.se>

Date: Mon, 4 May 2015 15:36:03 UTC

Severity: normal

Found in version 24.4

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 20502-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 20502-done <at> debbugs.gnu.org
Subject: Re: bug#20502: 24.4;
 json-pretty-print escapes forward slashes in strings
Date: Mon, 04 May 2015 13:19:04 -0400
Version: 25.1

Martin Algesten wrote:

> Whe doing "pretty-print-json" on this:

(You meant "json-pretty-print", as in the subject.)

> {"mimetype":"image/jpeg"}
>
> I end up with this:
>
> {
>   "mimetype": "image\/jpeg"
> }
>
> Notice the incorrect escaping of /.

Thanks for the report.
By experiment, this is already fixed in current master.

> In GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14)




This bug report was last modified 10 years and 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.