From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55278: json-parse-string Date: Mon, 09 May 2022 12:27:27 +0200 Message-ID: <87o8079f1s.fsf@gnus.org> References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28601"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Daniel Mendler , philipk@posteo.net, 55278@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 09 12:28:31 2022 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 1no0cu-0007Cn-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 May 2022 12:28:28 +0200 Original-Received: from localhost ([::1]:42986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no0ct-0002ec-4Y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 May 2022 06:28:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no0cU-0002WR-S0 for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 06:28:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1no0cU-0002N4-J0 for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 06:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1no0cU-0002RA-DE for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 06:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.16520920659335 (code B ref 55278); Mon, 09 May 2022 10:28:02 +0000 Original-Received: (at 55278) by debbugs.gnu.org; 9 May 2022 10:27:45 +0000 Original-Received: from localhost ([127.0.0.1]:56284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0cC-0002QV-Sd for submit@debbugs.gnu.org; Mon, 09 May 2022 06:27:45 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0cB-0002QI-6Z for 55278@debbugs.gnu.org; Mon, 09 May 2022 06:27:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NvP8Nus7gCf3+S53nQHjbQ7eqA17zDZ+ERIYEmaWYV0=; b=soz254b1YbebnMtF/iamf/RT7S /YlEL5CxLT4DhcnujJF9lXw1JAeQGbJMNg7vG2ayrrg3+RUDO+ztGNE8ibIfIvr3KkVwzm06atAJW HdIFRwFMlgAYtVg6JxnVfHFbe03/uVJ3TvBVJQn3UgV4re9FU7nlxK1tyx7HW05p05SE=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no0bw-0004cP-4F; Mon, 09 May 2022 12:27:35 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUYLokiNYkHHYFK U5Whp757hK7l5NqnKjuaK03QJSvnJykoLHpgNmsYKn3///+HV1tMAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YFCQoYH7ulgr8AAAFHSURBVDjLlZRLTsMwEIZnEPLOki2VXIAeAIjYF4ktUmnZIlHR5goN N+gRmp4AsWLPkiVepAfwXRiPk5LEU4n+VaRqvszT4wCQrAVrgGXoB2jJEsxBBtEwiMLw8PsGoaPL K46BxrahGo1vgKPBwB7B0MhgBrGABMyBHSwOgHoCIU7wuKe0EhoX1AkKQBVA3R0BUrUR2BMAnhdx tj1j48Gy7WF0QuWka5RylLuPdwmYcldt4T/AHsCb7PFZrqttmmMJP5tKAitwm7UcypWVALIlfMnl rmK5OBxk9ho8qPMETCD/ds6lOaYgK7vj8zAJUHNedpCAEVdOPfbA2R+YkllYOKNmAPImPjMXwIu4 oNTHIr1l0WNxpHP1cCoY9ePrw7+LfdtHvzh9W0P3W6F93cwmr2m42F4D7VvAMeiO84novfeB6Np7 jfgLnydHi4QKkrgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMDlUMTA6MjQ6MzArMDA6MDCD OtM4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTA5VDEwOjI0OjMwKzAwOjAw8mdrhAAAAABJ RU5ErkJggg== X-Now-Playing: Minny Pops's _Sparks in a Dark Room_: "Trance" In-Reply-To: (Richard Stallman's message of "Sun, 08 May 2022 19:39:45 -0400") 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:231717 Archived-At: Richard Stallman writes: > I agree that we should implement some built-in fallback mechanism > so that it works for all packages that use json parsing. The two libraries aren't really compatible without reparsing the entire parse tree returned by them. For instance, the C library returns: (json-parse-string "null") => :null While json.el says: (json-read-from-string "null") => nil Libraries like osm.el depend on the former type, and it parses a lot of data, making compat transformations prohibitively slow. We'd be doing our users a disservice if we were to just be slow here instead of telling them the real story: Build your Emacs with jansson support, already. (This happens by default if you have the library installed.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no