From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs 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 Message-ID: <87k0rcywtx.fsf@tcd.ie> References: <86v9aw9nt2.fsf@ims.co.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13009"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46486@debbugs.gnu.org To: Thomas Hisch Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 13:31: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 1lAu5e-0003HS-DS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 13:31:58 +0100 Original-Received: from localhost ([::1]:36748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAu5d-0002Cc-3f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 07:31:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAu4k-00028z-Rg for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 07:31:12 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAu4k-0000Wf-Jv for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 07:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAu4k-00066q-FY for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 07:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 12:31:02 +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.161321941220746 (code B ref 46486); Sat, 13 Feb 2021 12:31:02 +0000 Original-Received: (at 46486) by debbugs.gnu.org; 13 Feb 2021 12:30:12 +0000 Original-Received: from localhost ([127.0.0.1]:33671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAu3w-0005OF-B1 for submit@debbugs.gnu.org; Sat, 13 Feb 2021 07:30:12 -0500 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:46651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAu3u-0005Dr-0k for 46486@debbugs.gnu.org; Sat, 13 Feb 2021 07:30:10 -0500 Original-Received: by mail-wr1-f53.google.com with SMTP id t15so2752826wrx.13 for <46486@debbugs.gnu.org>; Sat, 13 Feb 2021 04:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pA8Kge+s4ThPniV5utE8CdapIQu2ykZXXyHC1dhu/hU=; b=CNhRCQqjFprCUxTFwLRplSEx8H3rrZZl/bVKr8iXS76FOX/keo04AToG3lGZkUWZoG ezKHlUwHaljWMVWDsOOjsOfU49HJU9rTOh/MfQ9OaNs+cvJsclKYbxeaklaifg4mz8fx NCa9+qmIM8i2VMNzg34XG2lV5cuTYKCjmgr6BgTj6QDtBkzRtCWa9/jv40lEXhmrv2Xr hjeEBEYKrY5yP1KOQ6OYjNCcTgD+sPRy5/5XoW8YVg77f5brciEae8S3Ylc44DkK48Su v4k2kmTmp4GxxOeZK3gH6/dwqG5SRoxk0N4ka8yHBfFL2wl2pcfwYoxXS40C0HGCoKTX TceQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pA8Kge+s4ThPniV5utE8CdapIQu2ykZXXyHC1dhu/hU=; b=dGj4yCGbQjkmq+a4Zel3TRSqmFhvTJEp58r5ugIaR4corVWwsMMkQYKkT9hndpolK+ yaNvHQJVB4IbEPl9HjsBeT3Wu2Y88p+wValZh7eCdJgsA/7IYFCIvTb+qKJ2DRDsFcwO nC2oDZ7njRaKRrqUEqrLIMC8gXyIlMSF+jcC2P+FUV9IzWdvf/bpoC3H80GM0exo868p eiobiDb6NklYEC+asbm7p5gIbBQpn0HChQ3qtqDWEveeUsTaB/SvC/u7v33iA+2avnXm kc1H1oO1f6d0HEvE6iEbdf+vCJeojQzppOSP0VK6+9tY/1rdVosR+5zkksa5m8drOf0q Ctig== X-Gm-Message-State: AOAM530C32cGA98U3Q3ASoYfhWS9voMgtzBTwcTphLEWMXdIvTdFRvim WcsRx93994nytsxuhUajs7SUXg== X-Google-Smtp-Source: ABdhPJwblwwHmInHwhGytCFvuvNUWH4OUnQVYio0D7ZcPHutbjIB/2oJ2YxKdNbKVp2uR1MjqE0z0g== X-Received: by 2002:adf:f00c:: with SMTP id j12mr8458472wro.160.1613219404289; Sat, 13 Feb 2021 04:30:04 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:6d2d:c2fa:f3fa:cabd]) by smtp.gmail.com with ESMTPSA id j7sm17434688wrp.72.2021.02.13.04.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 04:30:03 -0800 (PST) In-Reply-To: <86v9aw9nt2.fsf@ims.co.at> (Thomas Hisch's message of "Sat, 13 Feb 2021 13:04:09 +0100") 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:199923 Archived-At: forcemerge 42994 46486 quit Thomas Hisch 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