|
From: | Davis Herring |
Subject: | Re: [PATCH] json: Add support for encoding structs |
Date: | Mon, 24 Apr 2017 16:52:02 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
That would mean that all struct field will have to be explicitly declared with a :json option to not be ignored.
You could use :json "" or :json 'ignore as the special value.
Instead, I've added a :json-ignore option that makes json-encode-struct ignore the slot ignore it when it's non-nil.
I'd prefer not to have :json "purported" :json-ignore t as a possible input. Davis --This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.
[Prev in Thread] | Current Thread | [Next in Thread] |