dump2

From Minetest Developer Wiki
Jump to: navigation, search



This article is a stub.



Syntax

dump2(obj, name="_", dumped={})

Description

Returns object serialized as a string, displaying values in a line-per-value format.

For example,
{test = {"Testing..."}}

becomes:

 _["test"] = {}
 _["test"][1] = "Testing..."

This handles tables as keys and circular references properly. It also handles multiple references well, writing the table only once.

Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox