dofile[[../Lua/DumpObject.lua]] a = { _ = true, __ = false } b = { 'a', 'b' } t = { a = { x = 5.0, y = 104.3, }, b = { -- Numerical index [5] = 42, -- Simple string index ('simple' means having the syntax of variables) ls = [[ Multiline Value ]], -- Complex string index ['Regular Expression'] = [[(?:\d{1,3}\.){3}\d{1,3}]], }, others = { -- Table as key tables = { [a] = '', [b] = "", -- This one is different of the previous one because the created -- table is different of b. You cannot reference it directly, -- it is reachable only by iterating on all keys/values... [ { 'a', 'b' } ] = { "aa", "bb" }, }, -- Complex strings as key strings = { [ [[C:\Lua\Lua.exe]] ] = true, [ "O'Neil" ] = false, [ 'Will "Liam" Cheese Pear' ] = not nil, }, -- Boolean as key [true] = a, } } -- Réferences in the table t.others.tables.reference = t.a t.others.tables.otherRef = b DumpObjectToFile(t, "DumpedObject.lua") tab = dofile("DumpedObject.lua") DumpObjectToFile(tab, "DumpedObject2.lua")