Ldump – serialize any Lua data

ldump is a powerful serializer for Lua, able to serialize any data including circular references, tables as keys, functions with upvalues, metatables, coroutines, threads, and userdata. It outputs valid Lua code for easy deserialization, prioritizing functionality and flexibility over speed and size. It supports various Lua versions and handles edge cases like joined upvalues and _ENV redefinition. However, it’s important to note that the deserialization function uses Lua’s load, which can load malicious code, so caution is advised. The code examples demonstrate ldump’s capabilities in serializing complex data like video game saves. Installation is straightforward, making it easy to integrate ldump into your projects.

https://github.com/girvel/ldump

To top