HolyLib Wiki

FancyTableToJSON

  string util.FancyTableToJSON( table tbl, boolean pretty, boolean ignorecycle = false )

Description

It's util.TableToJSON but faster and it will turn numbers into integers if they fit as one.

Arguments

1table tbl
The table to turn into json
2boolean pretty
Make it a pretty json string
3boolean ignorecycle = false
If true it won't throw a lua error when you have a table that is recursive/cycle.

Returns

1string json
The final json string