Skip to content

Conversation

dharrigan
Copy link
Contributor

A common scenario when serialising out to JSON, is the ability to remove any keys that have nil values, thus resulting in a more compact object being sent over the wire.

This small change introduces a new encoding option that, if set, will do precisely that.

Fixes #66

-=david=-

A common scenario when serialising out to JSON, is the ability to remove
any keys that have nil values, thus resulting in a more compact object
being sent over the wire.

This small change introduces a new encoding option that, if set, will do
precisely that.

Fixes #66

-=david=-
@ikitommi ikitommi merged commit 51212e4 into metosin:master Nov 30, 2022
@dharrigan dharrigan deleted the feat/strip-nils branch December 2, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow keys with no values to be removed during encoding
2 participants