[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55278: json-parse-string
From: |
Lars Ingebrigtsen |
Subject: |
bug#55278: json-parse-string |
Date: |
Mon, 09 May 2022 12:27:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Richard Stallman <rms@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
- bug#55278: 29.0.50; OSM package, Richard Stallman, 2022/05/05
- bug#55278: json-parse-string, Daniel Mendler, 2022/05/08
- bug#55278: json-parse-string, Richard Stallman, 2022/05/08
- bug#55278: json-parse-string, Richard Stallman, 2022/05/09
- bug#55278: json-parse-string, Richard Stallman, 2022/05/16
- bug#55278: json-parse-string, Philip Kaludercic, 2022/05/17
- bug#55278: json-parse-string, Richard Stallman, 2022/05/18
- bug#55278: json-parse-string, Richard Stallman, 2022/05/09
- bug#55278: json-parse-string, Richard Stallman, 2022/05/09