From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#46486: [External] : bug#46486: 28.0.50; json-parse-string missing support for key-less json strings Date: Sat, 13 Feb 2021 23:20:37 +0000 Message-ID: References: <86v9aw9nt2.fsf@ims.co.at> <1255227A-65C5-4FF1-8923-6000545A72D6@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17673"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "46486@debbugs.gnu.org" <46486@debbugs.gnu.org> To: Philipp , Thomas Hisch Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 00:21:58 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lB4Eg-0004SP-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 00:21:58 +0100 Original-Received: from localhost ([::1]:54114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB4Ef-0005Ez-1p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 18:21:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB4Dm-0005DA-3d for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 18:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB4Dl-0002Nh-Sp for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 18:21:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lB4Dl-0000BQ-PU for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 18:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 23:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46486 X-GNU-PR-Package: emacs Original-Received: via spool by 46486-submit@debbugs.gnu.org id=B46486.1613258449676 (code B ref 46486); Sat, 13 Feb 2021 23:21:01 +0000 Original-Received: (at 46486) by debbugs.gnu.org; 13 Feb 2021 23:20:49 +0000 Original-Received: from localhost ([127.0.0.1]:35217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB4DZ-0000Aq-AG for submit@debbugs.gnu.org; Sat, 13 Feb 2021 18:20:49 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:42372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB4DW-0000Ad-UD for 46486@debbugs.gnu.org; Sat, 13 Feb 2021 18:20:48 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11DNHN5d051727; Sat, 13 Feb 2021 23:20:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=p4gO/OKznC+6eIb9wzYxGnD126kwspFlZiWSPHmD9Xc=; b=EA159U9ImZbfyIChxoYvnmxyaKxYNtRHD3O96YO0knHyJF6bss99HO6hE6TRqSriD8my bkSRHhaV7NSToQkW3Q+AHJg2wiWYniB1kDERWVFzizGv99ln2cTq+8LCYqdp/ONJTwJ3 0G4qNkndFK70ezthaYxkjZvGK5c3YYd+S/Z1s9LWceRMQaGTAs+v1nXc/S28651uHnP+ QTr5/xaSpRQ3uZtlReWsv4Xxvqpu7mmYTzB1PJ+F1udd7EmQvNynnNlW+ARSUd8ANqzr TRwLXVRLmfmQl90VWpPoINsFmxYv22mPWWs5kTllDuTthxaXfpFdQKAwGSVyzNM1b2C0 qw== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 36p7dn92qm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Feb 2021 23:20:40 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11DNJnZ4160830; Sat, 13 Feb 2021 23:20:40 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2177.outbound.protection.outlook.com [104.47.58.177]) by userp3030.oracle.com with ESMTP id 36p6d9dkar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Feb 2021 23:20:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iwSQHGVyYqixTurwUndU0mCmfMRIHPFyO3c3aSXDTlFzKSvSe6op6hx2c7fX/3IoGVAs8jsyIz72JD/Km3y1/j6e797wUu0IRVjkjAbFu8Sb3wNzDyf3h7OwANgW5s+gXOA07i/g60khSMdq7XwD7//Y0u16G8nbwdqHVuYDRAoY4SOuSJ/NYD0IXRGKMr+VeSOHjFjzxkSsvZJAfYckF5SUpoBtdL6KqjYwgZwS8NHNbQdLDSKvWECxIcuJJ7qnODEiprg7fex5MfQ9zi1qQBI0A0qiZMjtyDglLZ0+aWcngQku+59qA/OShYv3ex5JDo6ZmyU7PMwf3i3UfBApfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p4gO/OKznC+6eIb9wzYxGnD126kwspFlZiWSPHmD9Xc=; b=jAcj67W/5f41btPsHanAZ0+KVn6h6++LYvpN1FkH5PGtdWUYJmjNT5sTIqYAvVAVbQpYJbdz/WvpSQPf48TfsklN6fDDxL0ymQ7PsU183T1DI5Xeny2jIR9qDWBgXWJDOUNw8f4hODAJbCjTzafg2TRauEW773BAbK0WikVt8DTYdDto3sQmN/Bq/xfu63QuKirHwWQExEEp52qlUekR9kKJdKdj3WpancgoDzSEd9ogmaDqM/VAU94P1OdBb/c7Es2cjAJzQcW4sBT7ajUFYkQYdp3gCLrcH+seJLr5N6fTmulpPOmMGJstryXYAd21dp7g2aanuX0WlnG2sRLBiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p4gO/OKznC+6eIb9wzYxGnD126kwspFlZiWSPHmD9Xc=; b=kbMdbMoGOxVz3eKr6xPRyznm2hWqZkNg7FKNEQRbIel7KaF8eHKJvnDlfXTMmq0ZL2IUgXLrX3IZgfa2kJi3QdktYuwhBZjPJIugovgVSUyRvm4JP9RuAvbpjD6xBLN0wpUWt1UcazDTe3vt/6JHIp+j7rc5nC3BU1OxonCE9Sg= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2734.namprd10.prod.outlook.com (2603:10b6:805:41::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Sat, 13 Feb 2021 23:20:38 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3846.038; Sat, 13 Feb 2021 23:20:38 +0000 Thread-Topic: [External] : bug#46486: 28.0.50; json-parse-string missing support for key-less json strings Thread-Index: AQHXAgNV0GV1F5DbwE+9JPDMgViX8qpWuOEA In-Reply-To: <1255227A-65C5-4FF1-8923-6000545A72D6@gmail.com> Accept-Language: en-US Content-Language: en-US authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b0fa1d8b-06bb-4be7-d8f8-08d8d075f90d x-ms-traffictypediagnostic: SN6PR10MB2734: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 91OGn8vpzsMhNR5ENMjwYyLwbXX1Ou/MQOGNFOzceuv4py3reG9GQvOLIqZKDlHHvEhO46kOi3JJo5c2DIlk6dvhZ5xlVcVXWKqmnkbkYLordKj8V5kYH7QmyIO8t+Bhvpxk0x+lTIeXiB98Fw1R40AdcJf4f10iY4a1caZoaWLyM05vm283JuNSuuKRL3W72pElgIrX7z/022Z49fnFqbz3xAB+Nh8W3+iNHJcCBONRAyqxUU3ubESMABofk3XeTFfZH0haOMl14Gbhm+i7HuAHIohhB1SD6ZM67CHQ1U05gSgassujHo9eiBEOv0pzXsaq+5gCuFKeDDIZGBmbAVxGX2Jg0GLAl10WjSl3fMGbLosEVhS05awSSULbUBbxKQLc32PzZ3s/Zv9CS3rsVaXwLeDO1gjyEDuh/VFJSjNGuwk9wKLxKEnuFH8Su1HKy6100wZJn0rREHDzMRh7y2PIOUUpovzliohJQNwRfoDBrWiUPulEsmPImWzP/l+nqk3Rg1MAA9HX9pgZhcRcxxRYuPaZ0Bq/m6CjWtX8NxjlFI/eKi2EujmTeiB+RJWZLpSkEjSVsnO3y9mPh5Tfd1bcjY0mc5iKDMnBr/b4HZE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(376002)(396003)(136003)(39860400002)(66556008)(64756008)(6506007)(66446008)(66476007)(8936002)(44832011)(66946007)(76116006)(5660300002)(26005)(8676002)(55016002)(7696005)(316002)(478600001)(71200400001)(33656002)(966005)(86362001)(110136005)(186003)(9686003)(4744005)(4326008)(2906002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Na1Atba7zusDVOu0DElO0H7r6hGRaInfZrwDq2YOgY8iJRcyvsWaHExJWyUddu8dfvXEcU3jktMipa6vo8im8CLMzxKt9cyCiAheGbxDlYi5OVRhdcvFt2xaTXSvBZ4WmSTre04gUNct4BOZWs65L0tzjcOPw329wAVyf3F91rRV7UnRn4ZUMOKCHCeBsDul/JNZsR/wi4NFRGa83cfJG95mOmegRnnNwXBwhAoDzg33YwGDdIT/V+KCieRPj+EmWrfNstyxFo6RWod0j1HjI7KfcVkUK23qRwwDfm5aF6eJccliJqmxVxKEmfYufGAj8xvUGit9HsXQ+iDNrJYVazivJ2J/X23fMYL2ZK5qoaGwUBUneaqHOsbvorVJ6W3dNRNwUoL/zZZJesW5Xm6mOLdv4cNEvm70dfnz2M43kFEfAhRXHdkTkrCZ3StS6g8kh9QGRKVjRhLjta1Nqzac0FcxZzYBuzCRjaWS4rymLxFZE7upAFHRYsp9U75DgkSuX8Oh0Y6rJzijVhygqa7441zpUiYEH+grXqrHDy6L2x7amqdep981BYfA1jraT5hdXswWFNrPYSkQP59epVzzegEsqRJW410taZ8BBWMxdnNFKXwXzo96lhNloVdGZSIWr85kY40EyQgbI6nzX5Brp/E08592ju6ZPGLptUzxCu3wjndeHpq1wZw0Xlnocm//ZMJna4muz7q+l9q+tVoXc36Bh4r/RY+7lQ87BUc3lrGu8EF4dtq1z1sRGuEE ALIeBjmM4qPgmFhLZYmLTZf45tXMfnMXCTUsDgl20+MoVPPh2Vtbk/yTdG2DfDqt9AqLaLgpfutSKg2pF93F2B0f5GpqpbeFrG x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0fa1d8b-06bb-4be7-d8f8-08d8d075f90d X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2021 23:20:37.9726 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VHlbUyBNYzuF+LJtH6jQU5jAC9XCiFYfPOaMxStILcxBeBMjwYyUngiRb05crW2t9BGZR4l4T9jjDwL48I2Anw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2734 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9894 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 suspectscore=0 mlxscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102130214 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9894 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 mlxscore=0 phishscore=0 spamscore=0 adultscore=0 clxscore=1011 impostorscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102130213 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199969 Archived-At: > > (json-parse-string "\"abc\"") > > -> progn: could not parse JSON stream: "'[' or '{' expected near > '\"abc\"'", "", 1, 5, 5 > > > > Note that strings that neither start with [ nor { are valid JSON > objects > > according to the JSON schema. > > >=20 > That contradicts RFC 4627, which states: "A JSON text is a serialized > object or array." Apologies for not following this thread. RFC 4627 is extended by RFC 8259. https://tools.ietf.org/html/rfc8259 With that, JSON scalars are included - not just JSON objects an arrays. (Again, dunno what the bug context is, or whether my comment is relevant. Please ignore, if not.)=20