Forest Logo
search
package_2

tableflattener

By @ro-bura

Roblox

Mirrored

TableFlattener

Generated by Rojo 7.6.1.

A Luau library for flattening complex tables with circular references and table indexes into an ID-based flat structure.

API

  • TableFlattener.Encode(anyTable) -> flattedTable
  • TableFlattener.Decode(flattedTable) -> unflattedTable

Example

local a = {}
local b = {}

a.d = b
a.c = b
a[b] = 30

local flatted = TableFlattener.Encode(a)
local unflatted = TableFlattener.Decode(flatted)

print(unflatted[unflatted.d]) -- 30

Package Details

Install command (Click to copy)


Version

0.1.2

License

MIT

check_circle

Safe for commercial use

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.