[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46486: 28.0.50; json-parse-string missing support for key-less json
From: |
Basil L. Contovounesios |
Subject: |
bug#46486: 28.0.50; json-parse-string missing support for key-less json strings |
Date: |
Sat, 13 Feb 2021 12:30:02 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
forcemerge 42994 46486
quit
Thomas Hisch <thomas.hisch@ims.co.at> writes:
> The [json-parse-string] function doesn't support json strings that
> only contain a single value, which is neither a list nor a dict, e.g.
>
> "123"
Thanks. This is a duplicate of https://bugs.gnu.org/42994.
[...]
> Note that strings that neither start with [ nor { are valid JSON objects
> according to the JSON schema.
Yes, since ECMA-404 from 2013, but unfortunately json.c currently
conforms only with RFC4627 from 2006 in this respect.
--
Basil