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

Nil in tables is not taken into account

Open niecore opened this issue 6 years ago • 0 comments

Whenever you use the value nil in a table, this value is not encoded correctly:

input = {1, nil} b = msgpack.pack(input)

0x91 0x01

Expected:

0x92 0x01 0xC0

Any ideas how to add nil handling arrays?

niecore avatar Dec 04 '19 11:12 niecore