Have you ever needed to store a table with recursive entries? Did standard textutils.serialize() failed you? Then this api is for you!
SerializeRec is simple one function api that allows you to serialize tables that contain recursive entries. It preserves the structure of input table and outputs string that can be unserialized using standard cc textutils.unserialize back into said table with the same structure and correct everything.
Download Here: http://pastebin.com/APF0HTE0
Or ingame by using command:
pastebin get APF0HTE0 serializerec(requires http-api to be active)
As it is api you need to os.loadAPI("serializerec") it. It contains one function in both spelling versions serialiseRec/serializeRec. You treat it like normal serialize and it will output string like normal serialize.
Features List:
- Serializes recursive tables
- Textutils.unserialize compatible
- Awesome!
Change-log:
Plans For Future:
Any Comment and Suggestions how to improve Code are appreciated.
Edited by Wojbie, 16 January 2016 - 07:18 PM.