unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: yyoncho <yyoncho@gmail.com>
Cc: Philipp Stephani <phst@google.com>, 41946@debbugs.gnu.org
Subject: bug#41946: 27.0.91; native json parsing: add :empty-object configuration
Date: Sat, 31 Jul 2021 18:12:00 +0200	[thread overview]
Message-ID: <87o8aicvjj.fsf@gnus.org> (raw)
In-Reply-To: <CACCVLQXtCnuYkZ42mjJJR=1s9XeVdqmRz_ZWes8ouxnXLW4CEw@mail.gmail.com> (yyoncho@gmail.com's message of "Sat, 31 Jul 2021 18:51:02 +0300")

yyoncho <yyoncho@gmail.com> writes:

> We already have 20k+ LOC project using json null as nil and rebinding it will
> force us to rewrite a great portion of the if statements.

You can wrap the json calls with a function that flips nil/:empty-object
easy enough, can't you?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-07-31 16:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-19  5:52 bug#41946: 27.0.91; native json parsing: add :empty-object configuration Ivan Yonchovski
2020-06-19  7:29 ` Eli Zaretskii
2020-06-19  8:07   ` yyoncho
2021-07-31 15:07     ` Lars Ingebrigtsen
2021-07-31 15:51       ` yyoncho
2021-07-31 16:12         ` Lars Ingebrigtsen [this message]
2021-08-01 23:53           ` Dmitry Gutov
2021-08-04  5:55             ` Lars Ingebrigtsen
2021-08-04 10:54               ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8aicvjj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=41946@debbugs.gnu.org \
    --cc=phst@google.com \
    --cc=yyoncho@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).