# Pastebin k8spkTOl -- Really simple serializer: function serialize(t, ignore_strings) ignore_strings = ignore_strings or false function _serialize(t) local s = '' for k,v in pairs(t) do if type(v) ~= 'function' then if type(k) == 'number' then s = s .. "[" .. k .. "]=" else s = s .. "['" .. k .. "']=" end if type(v) == 'table' then s = s .. serialize(v) .. ',' elseif type(v) == 'string' then if ignore_strings == false then s = s .. "'" .. v .. "'," else s = s .. v .. ',' end else s = s .. v .. ',' end end end return '{' .. s .. '}' end return _serialize(t) end