[Top][All Lists]

[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: Mon, 24 Apr 2017 09:25:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Sun, 23 Apr 2017 15:46:35 +0530 Vibhav Pant <address@hidden> wrote: 

VP> The following patch to json.el adds support for encoding record types
VP> declared via cl-defstruct. It also allows the user to change the json
VP> key for a struct field by using the `:json' keyword while declaring
VP> a slot.

Nice! I hope that goes in. Can you please write tests for it?

Is it possible to also exclude fields with :json nil? I think that's
very useful.

Finally, it would be great to be able to declare the JSON type of the


reply via email to

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