From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: How to test for native JSON support? Date: Mon, 03 May 2021 10:21:34 +0200 Message-ID: <87fsz4kykw.fsf@fastmail.fm> References: <87k0ohuybx.fsf@fastmail.fm> <785b4132-da32-0da8-519d-b39a58270f32@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32507"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.12; emacs 27.2 Cc: help-gnu-emacs@gnu.org, gnu-emacs-help@gnu.org To: Nikolay Kudryavtsev Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 10:32:48 2021 Return-path: Envelope-to: geh-help-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 1ldU0W-0008NK-8x for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 10:32:48 +0200 Original-Received: from localhost ([::1]:35644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldU0V-0001AI-BX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 04:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldTzc-0001AC-FI for help-gnu-emacs@gnu.org; Mon, 03 May 2021 04:31:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48832) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldTzc-0006Q9-8J for help-gnu-emacs@gnu.org; Mon, 03 May 2021 04:31:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47720) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ldTzb-0000VJ-AG for gnu-emacs-help@gnu.org; Mon, 03 May 2021 04:31:51 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:44683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldTzZ-0006NX-I3; Mon, 03 May 2021 04:31:51 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A39C215AB; Mon, 3 May 2021 04:31:47 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 03 May 2021 04:31:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm3; bh= XevnYJkOkQdAHOjPA+tIzIAwpOc+JCGJRSDrfZB+KFE=; b=Ri4Z2l1/8xEA46jE pXzyavvuyN99qQK2/AVP4ZSzgiZDaBweXjiPb3F8ZIEzmm3NGDUC2cQghkfQjKQc jFj/4ZVN4JNRWMkgZWNT51WTeNtnfFd7Knev8eMGzgwoCachZTnxLzbR42cJo4/I NhziDvZM1LR7iq7IYU/eFH67QF6uFvSpDtU1HccSry1sDOcHqkU56/BdoN6PzWS5 IJy0lvzy68b8u9GaND6W1AeM6DXFXMAFk7X1l+m1ltIm22/ju5WytLRWW61XZ2Kk 9d+Pk1fMIqAwC5cgIw1eTjCgtDpdyVpBsk74W3qW34uZAJygGRhLPO5z2zjtTbL2 0qe5dA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=XevnYJkOkQdAHOjPA+tIzIAwpOc+JCGJRSDrfZB+K FE=; b=j+gm2sIA/PoNDr5xhqhkB/7/Q0vNVMBg9yRuuQzlqQII+6lAwgkJVopCs ubNmE9XMyuke842rTo4/DxF4msfCPyf+hfD/Vjaence0TuTMKWaJ1/+EG1ckxLny ppG+AcTanBPtXBNmkr2sPlgENeiXGwg2Nv3n005Ei+kwmSG4KEGwvivjWqAAniLS PSgN5QSX7z6hVxH/5VnBhY4/1KDC5h/bHKlQLrhV33yWUvyTDBTEA3wjbwm4htoq 742ylnqr/ZT/VIfPi6Ohy1UlNHe9XTouWMhLLVJoDkZxjDLU13hSpgVCql9WOvwn 07o0OT5pTGgXMLY6m6xICS7Q/Bakw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdefgedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtgfesthhqredttderjeenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepvddvgfeghfdtiefhvedvvddtjefhleejveeltdelffev hfeijeekhfdutdffgeefnecukfhppeefuddrudejrddvhedurdduleelnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip1f11fbc7.dynamic.kabel-deutschland.de [31.17.251.199]) by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 May 2021 04:31:46 -0400 (EDT) In-reply-to: <785b4132-da32-0da8-519d-b39a58270f32@gmail.com> Received-SPF: pass client-ip=64.147.123.21; envelope-from=joostkremers@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129367 Archived-At: On Mon, May 03 2021, Nikolay Kudryavtsev wrote: > In my testing the safest way seems to be checking if (json-serialize =E2= =80=98((test . > 1))) would return a non-nil value. Thanks. I had hoped there would be a canonical way of doing this... Guess n= ot, then. --=20 Joost Kremers Life has its moments