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: Thierry Volpiatto <thievol <at> posteo.net>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 52683 <at> debbugs.gnu.org
Subject: bug#52683: 27.2; json-parse-string fails to parse embeded strings
Date: Tue, 21 Dec 2021 05:30:47 +0000
[Message part 1 (text/plain, inline)]
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> 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).

Thanks, I will report to the website.

> However, the webpage you linked (https://skitour.fr/topos/8583) is
> just HTML, it doesn't contain any JSON AFAICS.

Yes, was just a link to show you what it is about and where it comes from.

-- 
Thierry
[signature.asc (application/pgp-signature, inline)]

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.