unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: 52683@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	[thread overview]
Message-ID: <CAArVCkSuqOufydgQaY93Rj8yLpEKnAoonEnfsr9zjt5T_=cQ7Q@mail.gmail.com> (raw)
In-Reply-To: <87zgovdpgg.fsf@posteo.net>

Am Mo., 20. Dez. 2021 um 20:55 Uhr schrieb Thierry Volpiatto
<thievol@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.





  reply	other threads:[~2021-12-20 20:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 19:43 bug#52683: 27.2; json-parse-string fails to parse embeded strings Thierry Volpiatto
2021-12-20 20:53 ` Philipp Stephani [this message]
2021-12-21  5:30   ` Thierry Volpiatto
2021-12-22  6:03     ` Stefan Kangas
2021-12-22  6:32       ` Thierry Volpiatto
2021-12-22  6:51         ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAArVCkSuqOufydgQaY93Rj8yLpEKnAoonEnfsr9zjt5T_=cQ7Q@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=52683@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).