From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: How to test for native JSON support? Date: Mon, 3 May 2021 22:42:34 +0300 Message-ID: References: <87k0ohuybx.fsf@fastmail.fm> <785b4132-da32-0da8-519d-b39a58270f32@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30025"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 To: Nikolay Kudryavtsev , Joost Kremers , gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 21:44:13 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 1ldeUH-0007iD-5E for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 21:44:13 +0200 Original-Received: from localhost ([::1]:49800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldeUG-0004ya-8i for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 15:44:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldeSy-0004H7-IR for help-gnu-emacs@gnu.org; Mon, 03 May 2021 15:42:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32942) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldeSy-0004Jc-72 for help-gnu-emacs@gnu.org; Mon, 03 May 2021 15:42:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45884) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ldeSp-0006wT-5K for gnu-emacs-help@gnu.org; Mon, 03 May 2021 15:42:44 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:53806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldeSm-00048T-Gm for gnu-emacs-help@gnu.org; Mon, 03 May 2021 15:42:42 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id s82so4010244wmf.3 for ; Mon, 03 May 2021 12:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PmZidRRFNRe6lDiLH+Kgvlbu68Bbn3Ds8+iz7IiQhGA=; b=SoYksqPRJWV15eynsaP/4H0XciID+1Ob3A9skrIdNfSk1HsHChpeE+zbaAgcrhRp6b GKjikDyNcSQtq++/A0QfGS+cnS/GYB5oVhky+VcYgfSpuPS8X2GwgxSYxElV/t+TXIE6 XskvPRAyDZQ7RaSKR5XIwSzG3ggUdYk8hdssJE6LMu5fYMLtiNp85FKPWHZHEznxPh3b m1aEkfl6UZF0ZBaxfdpoW1QSmHbbmjxzZ88AGk3HGaUOwAG20UBfcuinQOIjxQ8D56ux 2gFR2ZNqC0YiRI1Kcy8Qxe4/HB+6ohOCvTrlS6vcSYhTMadBXAPXEB7wzhDvDSPjOtnw P4nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PmZidRRFNRe6lDiLH+Kgvlbu68Bbn3Ds8+iz7IiQhGA=; b=bDTHQcTC+3DLxm3N4Y63Q+6LqMfeziBTSnN6Azm96c1pq2n/0nSP8MovTwjEboOjvj 5GavVMyfmwP4AEuHltqsNDak6QcDxIM0dwVs+WJK09fI1LWTlgHcipNFfZAOj6wnA+MC J2euhqWBIJ+G2TWTTQ1BLwKOV+KznH5d4h2XQJFhtVo25TvLUFd5oq68KiwStO8F6APv 0AoLFBGMV0ITJ7YdETKz0AeZExCltsRHlsABm1FOB31byrABtJFAmAH6iNsI0ySZgw08 P2FZxBKeVaI7l9IOm3/wJUai/H7YMB43W+kdtoGaOygAqC6bxyDKkN37HT/JMZeoD1lI v9Uw== X-Gm-Message-State: AOAM530VApBFnTDJIl1y0JtAduoPBGdbTorjAgB4UAgERkJOtIkpkCAF j7xPATJ2aQwshJQBb5igR66L8470WOE= X-Google-Smtp-Source: ABdhPJy9FUEKaSQ6VE/FaYU5AIkZE18CqSXDTmeTuGdDDMsE4UX4NklvI5PVJ3am9Vo1nAwCjTiREg== X-Received: by 2002:a7b:c012:: with SMTP id c18mr195222wmb.94.1620070957019; Mon, 03 May 2021 12:42:37 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id y125sm530052wmy.34.2021.05.03.12.42.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 May 2021 12:42:36 -0700 (PDT) In-Reply-To: <785b4132-da32-0da8-519d-b39a58270f32@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:129382 Archived-At: On 03.05.2021 03:20, Nikolay Kudryavtsev wrote: > In my testing the safest way seems to be checking if (json-serialize > ‘((test . 1))) would return a non-nil value. Have you encountered any specific situations where the function was fbound, but failed to work?