[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to test for native JSON support?
From: |
Joost Kremers |
Subject: |
Re: How to test for native JSON support? |
Date: |
Tue, 04 May 2021 15:06:10 +0200 |
User-agent: |
mu4e 1.5.12; emacs 27.2 |
On Tue, May 04 2021, Eli Zaretskii wrote:
> The message is "jansson library not found".
>
> But to answer your question, you should allow the user to determine
> whether the built-in or the Lisp implementation will be used, because
> only the user knows whether the library is installed.
I'm not sure every user will. I suspect many won't care either way, as long as
the relevant json file can be read.
>> And is there a reason why the native json-functions do not gracefully degrade
>> to
>> their counterparts in the `json.el` library?
>
> First, because no one wrote the code to do that; patches welcome.
> Second, because the implementations are not 100% equivalent, neither
> in the API names nor in some aspects of the functionality. So
> automatic replacement is not trivial, not in general anyway.
Ok, I see. I haven't run into any functionality differences yet, but if and when
I do, I'll deal with them then. Then who knows, some day I might be able to
write that patch...
Thanks for your answer!
--
Joost Kremers
Life has its moments
- Re: How to test for native JSON support?, (continued)
- Re: How to test for native JSON support?, Dmitry Gutov, 2021/05/03
- Re: How to test for native JSON support?, Nikolay Kudryavtsev, 2021/05/03
- Re: How to test for native JSON support?, Dmitry Gutov, 2021/05/03
- Re: How to test for native JSON support?, Tim Landscheidt, 2021/05/04
- Re: How to test for native JSON support?, Eli Zaretskii, 2021/05/04
- Re: How to test for native JSON support?, Joost Kremers, 2021/05/04
- Re: How to test for native JSON support?, Eli Zaretskii, 2021/05/04
- Re: How to test for native JSON support?,
Joost Kremers <=
- Re: How to test for native JSON support?, Dmitry Gutov, 2021/05/04
- Re: How to test for native JSON support?, Eli Zaretskii, 2021/05/04
- Re: How to test for native JSON support?, Dmitry Gutov, 2021/05/04
- Re: How to test for native JSON support?, Philipp Stephani, 2021/05/04
- Re: How to test for native JSON support?, Dmitry Gutov, 2021/05/04
- Re: How to test for native JSON support?, Eli Zaretskii, 2021/05/04