[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a
From: |
Lars Ingebrigtsen |
Subject: |
bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error |
Date: |
Mon, 07 Dec 2020 14:39:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes:
>> Sorry, I was unclear -- I'm not saying the old and the new functions
>> should be compatible, only that there should be functions that can round
>> trip via JSON->Elisp->JSON and get identical results back.
>>
>> Is that the case today?
>
> You mean something like (json-serialize (json-parse-string ...))? I'd
> hope that's indeed the case to the furthest extent possible. There are
> cases where roundtripping is impossible (parsing ignores whitespace,
> field order, and duplicate keys), but otherwise I'd hope these
> functions are inverses of each other. Or is there a case where they
> aren't?
No, the confusion is on my part -- I somehow assumed that
json-pretty-print had been converted to use the new C functions, but
it's using the old, non-consistent json.el functions instead.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Henry Minsky, 2020/12/03
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Lars Ingebrigtsen, 2020/12/04
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Basil L. Contovounesios, 2020/12/05
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Philipp Stephani, 2020/12/05
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Basil L. Contovounesios, 2020/12/05
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Lars Ingebrigtsen, 2020/12/06
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Philipp Stephani, 2020/12/06
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Lars Ingebrigtsen, 2020/12/06
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Philipp Stephani, 2020/12/06
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error,
Lars Ingebrigtsen <=
- Message not available
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Lars Ingebrigtsen, 2020/12/08
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Dmitry Gutov, 2020/12/06
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Philipp Stephani, 2020/12/12
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Dmitry Gutov, 2020/12/12
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Philipp Stephani, 2020/12/13
- bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error, Dmitry Gutov, 2020/12/13