GNU bug report logs - #55278
29.0.50; OSM package

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Thu, 5 May 2022 18:39:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, philipk <at> posteo.net, 55278 <at> debbugs.gnu.org
Subject: bug#55278: json-parse-string
Date: Mon, 09 May 2022 12:27:27 +0200
Richard Stallman <rms <at> gnu.org> writes:

> I agree that we should implement some built-in fallback mechanism
> so that it works for all packages that use json parsing.

The two libraries aren't really compatible without reparsing the entire
parse tree returned by them.  For instance, the C library returns:

(json-parse-string "null")
=> :null

While json.el says:

(json-read-from-string "null")
=> nil

Libraries like osm.el depend on the former type, and it parses a lot of
data, making compat transformations prohibitively slow.  We'd be doing
our users a disservice if we were to just be slow here instead of
telling them the real story: Build your Emacs with jansson support,
already.  (This happens by default if you have the library installed.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

Previous Next


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