lua-ubjson


Overview

The UBJSON (Universal Binary JSON) is a data interchange format. It is a binary form directly imitating JSON, but requiring fewer bytes of data.

lua-ubjson is a pure Lua implementation (with an only dependency on compat53 with Lua 5.1 & 5.2) and aligned with the Draft 12 specifications.

References

The homepage of UBJSON is available at https://ubjson.org/.

Status

lua-ubjson is in alpha stage.

It's developed for Lua 5.1, 5.2, 5.3 & 5.4.

Download

The sources are hosted on Framagit.

The Teal type definition of this library is available here.

Installation

lua-ubjson is available via LuaRocks:

luarocks install lua-ubjson
#luarocks install compat53

or manually, with:

make install LUAVER=5.3

Test

The test suite requires the module lua-TestAssertion.

make test

Copyright © 2023 François Perrad

This library is licensed under the terms of the MIT/X11 license, like Lua itself.