-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to strip undefined properties on encoding? #71
Comments
IMO it is a bug to have
Yet with this lib:
|
Interesting. The library could have an option The msgpack has https://www.npmjs.com/package/msgpack-js JSON.stringify() removes Object property when its value is JSON.stringify([undefined]); // -> '[null]'
JSON.stringify({a: undefined}); // -> '{}' |
It would be awesome if there was such an option. I think under such option It would also be very helpful if this option could be set via environment variable (e.g. |
I'm also keen to have this option. Is there any progress on it? |
In the docs it says that both
null
andundefined
will come through asnull
on the other end. Is it possible to configure something to makeundefined
properties to be removed completely during encoding?The text was updated successfully, but these errors were encountered: