nanos world API Reference Unofficial documentation
Static function Shared

NanosTable.Dump

Dumps a table into a readable text

Syntax

Lua
NanosTable.Dump(table)

Parameters

Name Type Default Description
table table Table to dump

Returns

  • string the table as readable text

Examples

Dumps a table
local tbl = {,    ["my_key"] = 123,,    [2] = "my_value",},,local dump_text = NanosTable.Dump(tbl),,Console.Log(dump_text),,-- Outputs Text,--[[,{,   ["my_key"]: 123,,    2 = "my_value",},--]]