From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Hack for JSON sequences with trailing commas? Date: Wed, 1 Aug 2018 07:40:15 -0700 (PDT) Message-ID: <98746f25-f53d-4152-b13e-ebee97b2bf0e@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1533134352 2599 195.159.176.226 (1 Aug 2018 14:39:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2018 14:39:12 +0000 (UTC) To: Barry Margolin , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 01 16:39:08 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fksHL-0000Wg-H2 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 16:39:07 +0200 Original-Received: from localhost ([::1]:41494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fksJQ-0005Zo-Ek for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 10:41:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fksIc-0005XX-EX for help-gnu-emacs@gnu.org; Wed, 01 Aug 2018 10:40:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fksIY-000297-BT for help-gnu-emacs@gnu.org; Wed, 01 Aug 2018 10:40:26 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:51668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fksIY-00026R-1a for help-gnu-emacs@gnu.org; Wed, 01 Aug 2018 10:40:22 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w71EctFs169296; Wed, 1 Aug 2018 14:40:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=E+xhphs5WBPeBrl+rGBwV8y7V4IxiB0up0fxLY3qebw=; b=WyLhyOPw/WYQS4bFQj9q5F+rpBPLydHl8haFgol3KlmVEoAbYcCfhVbzxd71Rs9apszc 2LN9UALQFXB8b0IT5lWCbI5/aOuRD/Ls49OEuzN3SH4WLjOkEXzBPKijsQc8jmzdfXyv DoJ1mVC0onmy+44XvYlnQnxKcPqeEbeLTNTUpH8UA2i5RQJ8xheJOWxVxuBndjvdS/+G azGb+IVrBz1B++UJvag558HHQ9fN1uLpaONjgaLQaFtpW3dRV/qiS3bj696UQ2lO1IXg TcuimUVoNzp7omDAmRUmP39eyepulsiZr7EsV2dXjOMXNCHDwQYfcrfpbDd0taxQhmEi wg== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2kggep607b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Aug 2018 14:40:17 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w71EeH7I014710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Aug 2018 14:40:17 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w71EeG6O016098; Wed, 1 Aug 2018 14:40:16 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4717.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8971 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=835 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1808010152 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117620 Archived-At: > 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/conditi= ons-is-json-and-is-not-json.html#GUID-1B6CFFBE-85FE-41DD-BA14-DD1DE73EAB20