From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.bugs Subject: bug#24252: 25.1; json.el doesn't distinguish null and empty object Date: Mon, 28 May 2018 17:21:46 +0200 Message-ID: <877enniz5h.fsf@petton.fr> References: <87o9hci1c5.fsf@cassou.me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1527520813 10218 195.159.176.226 (28 May 2018 15:20:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 15:20:13 +0000 (UTC) Cc: Philipp Stephani , Mark Oteiza , Theresa O'Connor , 24252@debbugs.gnu.org, Dmitry Gutov To: Damien Cassou , Yoichi Nakayama Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 28 17:20:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNJwN-0002WY-TO for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 May 2018 17:20:08 +0200 Original-Received: from localhost ([::1]:56728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNJyV-0002Ja-0X for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 May 2018 11:22:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNJyH-0002Hw-BO for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 11:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNJyE-0001dq-Mv for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 11:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNJyE-0001db-Cc for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 11:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fNJyE-0001sy-6Z for bug-gnu-emacs@gnu.org; Mon, 28 May 2018 11:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Petton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 May 2018 15:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24252 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24252-submit@debbugs.gnu.org id=B24252.15275209197240 (code B ref 24252); Mon, 28 May 2018 15:22:02 +0000 Original-Received: (at 24252) by debbugs.gnu.org; 28 May 2018 15:21:59 +0000 Original-Received: from localhost ([127.0.0.1]:52560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNJyB-0001sh-J6 for submit@debbugs.gnu.org; Mon, 28 May 2018 11:21:59 -0400 Original-Received: from petton.fr ([89.234.186.68]:50680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fNJy9-0001sU-6r for 24252@debbugs.gnu.org; Mon, 28 May 2018 11:21:57 -0400 In-Reply-To: <87o9hci1c5.fsf@cassou.me> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1527520910; bh=TeDgNNLOpa2uP0LMb91+qsasAEsS5YE8MiUOaEl+MZ8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=YYJ5GDW/fsBLQwH/4b0JUVmG+OuXTMJB4qPTIv68xjGkCOuiDQf8IHJz76bzY44DrwwmM5zUJcPysMmd1oRPpCPSlZ441VxvZOjRxOCA2wU6DUgX7UO3B7M3AKVhIFDCUCgtNNos2Y3xJh8JJ7z0Qb7i+0RnxNMetsiWXqpjZLE= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146639 Archived-At: --=-=-= Content-Type: text/plain Damien Cassou writes: > please find a patch attached. This patch uses :json-null to distinguish, > during pretty-print, between the value null and an empty object. It looks good to me, but I'm wondering if encoding/decoding (not pretty-printing) will be backward-compatible or not. Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1AWqLIYsVPF+7mvg6LzXhmr8+XgFAlsMHooACgkQ6LzXhmr8 +Xi2+wf/fMCx+9w/yVlFfH9f8xhS3ii3JB6fllFyvZlxN6l815XWzBPd0fsSggVC PIH/eKtCTwUKpUY/jvx0BIUTy6wMTcsXkpkNIM3JdUMBGk6zynnDRifU9DFZ3HGy PAAk3vkEjz4BMK6MuWPhHMArmFMCUgtUe44Ip0ARrUURNabUS3AS4I3RcFRNpjDL JZ85emT/gRBFSxojsq4F2pU2tmCNwsRAU4+7dqIRDgGCUFz01Hur9/z6LEtk+Aba ctBd1xA7l90CwyxLELy8jeu5S2tvMOPmBmydwKQQoWgVLC2yP4RBaYnRh97cqMn+ lMuBveK+S8c+glurV6H9MD2oSB8NUQ== =PX9Q -----END PGP SIGNATURE----- --=-=-=--