FancyTableToJSON
Description
It's util.TableToJSON but faster and it will turn numbers into integers if they fit as one.
This implementation will include null for values it cannot handle.
Gmod hides null but we don't meaning if for example we get {math.huge} as input, it will return [null] which still is valid json.
Arguments
3boolean ignorecycle = false
If
true it won't throw a lua error when you have a table that is recursive/cycle.