{"body":"-- Really simple serializer:\nfunction serialize(t, ignore_strings)\n   ignore_strings = ignore_strings or false\n   function _serialize(t) local s = ''\n      for k,v in pairs(t) do\n\t if type(v) ~= 'function' then\n\t    if type(k) == 'number' then s = s .. \"[\" .. k .. \"]=\"\n\t    else s = s .. \"['\" .. k .. \"']=\" end\n\n\t    if type(v) == 'table' then s = s .. serialize(v) .. ','\n\t    elseif type(v) == 'string'    then\n\t       if ignore_strings == false then s = s .. \"'\" .. v .. \"',\"\n\t       else s = s .. v .. ',' end\n\t    else s = s .. v .. ','    end\n\t end\n      end\n      return '{' .. s .. '}'\n   end\n   \n   return _serialize(t)\nend","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/k8spkTOl","modified":1486356543,"id":"k8spkTOl","size":633,"lines":21,"own_paste":false,"theme":"","date":1486356543}