lune
lune copied to clipboard
Json & yaml encoding tables with nil elements causes a cut-off (serde)
print( serde.encode("json", {"foo", nil, "bar"}) )
Expected Output:
["foo",null,"bar"]
Actual Output:
["foo"]
p.s. toml encoding gives me a "unsupported rust type" error 😅
Lua length operators are weird.
Encoding null in JSON with nil values in Lua is a pretty weird problem to solve, considering Lua has a set of obscure rules of when to consider nil a value and when not. That said, this should be considered a bug nonetheless.