json.lua is a lightweight JSON library for Lua that provides straightforward encoding and decoding without requiring a large external package. It is designed to be dropped into an existing project as a single Lua file, then required directly from application code. The library exposes a simple API for turning Lua values into JSON strings and parsing JSON strings back into Lua values. Its small size makes it practical for games, plugins, scripts, embedded Lua environments, and projects where dependency weight matters. It is implemented in pure Lua and is known for being fast among pure Lua JSON options while still offering useful error messages. Overall, it is a convenient choice when a Lua project needs dependable JSON support with minimal setup.
Features
- Single-file Lua integration
- JSON encoding support
- JSON decoding support
- Pure Lua implementation
- Small source footprint
- Readable parsing error messages