Utility.Serialize.Full

Serializes a table of parameters. Results in a string suitable for feeding directly into loadstring(). Deals properly with table cycles and non-tree structures.

Usage:

serialized = Utility.Serialize.Full(elements)
serialized = Utility.Serialize.Full(elements, exists)
ParameterTypeDatatypeDescription
elementsparametertableTable of elements to serialize.
existsparametertableOptional parameter containing a table of elements that should be included even in the case that they are nil.
serializedresultstringString containing serialized output. May be nil if there was an error with the input.