Skip to content
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

Json & yaml encoding tables with nil elements causes a cut-off (serde) #275

Open
TokenManiac opened this issue Nov 6, 2024 · 1 comment
Labels
needs information / investigation Issue is missing information to be able to be solved

Comments

@TokenManiac
Copy link

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 😅
@CompeyDev
Copy link
Contributor

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.

@filiptibell filiptibell added the needs information / investigation Issue is missing information to be able to be solved label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs information / investigation Issue is missing information to be able to be solved
Projects
None yet
Development

No branches or pull requests

3 participants