pub(crate) fn lua_value_to_json(value: LuaValue) -> LuaResult<Value>
Convert a Lua value to a JSON value.