msgpack-erlang icon indicating copy to clipboard operation
msgpack-erlang copied to clipboard

Elixir/Erlang nil/null problem

Open grepz opened this issue 5 years ago • 1 comments

Having some problems with elixir/erlang null/nil coding/decoding. Jiffy has wonderful option use_nil, which does following:

 jiffy:encode(#{a => nil}, [use_nil]).
<<"{\"a\":null}">>

Why not use same approach in msgpack? Having similar option that handles nil/null as one entity. Changes in code are minimal.

grepz avatar Mar 11 '19 09:03 grepz

https://github.com/msgpack/msgpack-erlang/pull/83

grepz avatar Mar 12 '19 11:03 grepz

Thanks @grepz , this issue has been fixed as of 0.8.1.

kuenishi avatar Jun 09 '23 18:06 kuenishi