Skip to main content

lua_to_json

Function lua_to_json 

Source
fn lua_to_json(value: &LuaValue) -> Value
Expand description

Converts a Lua value back to JSON. Tables with a non-zero sequence length become JSON arrays, other tables become objects with string keys; unconvertible values (functions, userdata, non-UTF-8 strings) degrade to null or empty strings rather than erroring.