GNU bug report logs - #52683
27.2; json-parse-string fails to parse embeded strings

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Mon, 20 Dec 2021 19:53:02 UTC

Severity: normal

Found in version 27.2

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Thierry Volpiatto <thievol <at> posteo.net>
Cc: 52683 <at> debbugs.gnu.org
Subject: bug#52683: 27.2; json-parse-string fails to parse embeded strings
Date: Mon, 20 Dec 2021 21:53:31 +0100
Am Mo., 20. Dez. 2021 um 20:55 Uhr schrieb Thierry Volpiatto
<thievol <at> posteo.net>:
> in a json output, I have a string containing a string like this:
>
>     "Cime du Pied de Barry : \\"ArĂȘtissime\\""

This is invalid syntax, it should be

"Cime du Pied de Barry : \"ArĂȘtissime\""

> So I wonder if it is a bug in json-parse-string which fails on such
> string or in the API of the website itself which should not provide such
> string in their json output.

It's a bug in the website (or some other step in the process
incorrectly double-escapes quotation marks). However, the webpage you
linked (https://skitour.fr/topos/8583) is just HTML, it doesn't
contain any JSON AFAICS.




This bug report was last modified 3 years and 151 days ago.

Previous Next


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