Skip to main content

lua_to_json_preserving_null

Function lua_to_json_preserving_null 

Source
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 {}.