pub fn lua_to_json_preserving_null(val: LuaValue) -> LuaResult<Value>Expand description
Convert a Lua value to a JsonValue, treating both nil and the
LightUserData(null_ptr) sentinel as JSON null.
Empty tables follow wants_empty_array: tagged ones encode as [],
untagged ones as {}.