Skip to content

utils.table.dump

utils.table.dump(table)
This function dumps the given table to a readable string with a tree structure.

Arguments

Argument Data Type Optional Default Value Explanation
table table No - Sets the table

Dependency

local utils = M("utils")

Example

local myTable = { {esx = 'awesome'} }
local dumpedTable = utils.table.dump(myTable)

print(dumpedTable)

-- print below
--{
--  {
--    ["esx"] = awesome
--  }
--}

Improve this documentation