$ luarocks install datadumper
require 'DataDumper' ;
print( DataDumper(value[, varname, fastmode, indent]) )
The function has four parameters; only the first is mandatory.
It always returns a string, which is valid Lua code; executing
this will import back to a variable the complete structure
of the original. For simple structures, there is only one
Lua instruction (e.g. a table constructor), but some more
complex features will output a script with more instructions.
Versions
Dependencies
lua >= 5.1, < 5.3