help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Hack for JSON sequences with trailing commas?


From: Drew Adams
Subject: RE: Hack for JSON sequences with trailing commas?
Date: Wed, 1 Aug 2018 07:40:15 -0700 (PDT)

> JSON is a very limited subset of Javascript notation for literals. Many
> things that are allowed in Javascript source code are not allowed in
> JSON. The reason is presumably to simplify the design of JSON parsers --
> they don't have to deal with all possible input formats.

Yes, but there is a difference between JSON as defined by its standard
and JSON as it is used in practice in many situations. The former is more
strict than the latter.

Here is one description of possible differences between the strict syntax
of the standard and a lax syntax (one that does allow an extra, final comma):

https://docs.oracle.com/en/database/oracle/oracle-database/18/adjsn/conditions-is-json-and-is-not-json.html#GUID-1B6CFFBE-85FE-41DD-BA14-DD1DE73EAB20




reply via email to

[Prev in Thread] Current Thread [Next in Thread]