orlandos-nl/IkigaJSON

Option to not encode nil keys at all?

ravelasquez99 opened this issue · 1 comments

Would it be possible to add a way to drop keys from the encoded json when the value is null? There are some APIs that treat a null value as invalid if the key is in the json.

I created this gist to point out the issue. Essentially I'd like to drop the street_addrees_2 when nil.

https://gist.github.com/ravelasquez99/4a09cc8219415d3b9e59fe0b64655529