emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] json: Add support for encoding structs


From: Ted Zlatanov
Subject: Re: [PATCH] json: Add support for encoding structs
Date: Tue, 25 Apr 2017 14:12:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Tue, 25 Apr 2017 21:56:16 +0530 Vibhav Pant <address@hidden> wrote: 

VP> On Tue, Apr 25, 2017 at 7:56 PM, Ted Zlatanov <address@hidden> wrote:
>> Maybe one way is to distinguish '(:serialize-field nil) from '() by
>> checking with memq for the key?

VP> Good idea. `plist-member' seems to do the job. I've updated the patch
VP> accordingly, thanks.

It looks good to me!

(Aside: it would be nice if ERT had a way to check JSON or other
structured data in a whitespace-insensitive, canonical way, like what
`jq --sort-keys .' might produce.)

Ted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]