Skip to content

serde_json::Value::Null does not map to mlua::Value::Nil #715

Description

@ElhamAryanpur

When attempting to println!("{:#?}", lua.to_value(&serde_json::Value::Null)); the result is Userdata null instead of Lua's nil type. Every other data type is mapped correctly.

The mlua version tested with is 0.11.6 with "luajit, anyhow, async, macros, send, serialize, vendored" features enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions