Subject: bug#24252: 25.1; json.el doesn't distinguish null and empty object

From: Dmitry Gutov <[email-masked]>
Date: Sun, 21 Aug 2016 06:42:26 +0300

On 08/20/2016 09:12 AM, Yoichi Nakayama wrote:

> I agree that json-pretty-print should be responsible to the issue.
> But I think
>
> (let ((json-null 'NULL)) (json-encode (json-read-from-string "{}")))
>
> is also a bug.
> How about the following patch?

Something like this looks like a good idea to me. Especially if you 
figure out what's the problem you have "with some cases".