You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 2016-02-16, Ser is deprecated. I will still fix reported bugs, but for new projects, I recommend bitser if you're using LuaJIT, and binser
otherwise.
Ser
Ser is a fast, robust, richly-featured table serialization library for Lua. It
was specifically written to store configuration and save files for
LÖVE games, but can be used anywhere.
Originally, this was the code to write save games for
Space, but was released as a stand-alone
library after many much-needed improvements.
Like Space itself, you use, distribute and extend Ser under the terms of the
MIT license.
Simple
Ser is very simple and easy to use:
localserialize=require'ser'print(serialize({"Hello", world=true}))
-- prints:-- return {"Hello", world = true}
Fast
Using Serpent's benchmark code, Ser is 33% faster than Serpent.
Robust
Sometimes you have strange, non-euclidean geometries in your table
constructions. It happens, I don't judge. Ser can deal with that, where some
other serialization libraries cry "Iä! Iä! Cthulhu fhtagn!" and give up —
or worse, silently produce incorrect data.