lunajson

A strict and fast JSON parser/decoder/encoder written in pure Lua

$ luarocks install lunajson

Lunajson features SAX-style JSON parser and simple JSON decoder/encoder. It is tested on Lua 5.1, Lua 5.2, Lua 5.3, Lua 5.4, and LuaJIT 2.0. It is written only in pure Lua and has no dependencies. Even so, decoding speed matches lpeg-based JSON implementations because it is carefully optimized. The parser and decoder reject input that is not conformant to the JSON specification (ECMA-404), and the encoder always yields conformant output. The parser and decoder also handle UTF/Unicode surrogate pairs correctly.

Versions

1.2.3-15 years ago452,337 downloads
1.2.2-17 years ago19,920 downloads
1.2.1-17 years ago59 downloads
1.2-08 years ago20,880 downloads
1.1-010 years ago(revision: 2)8,925 downloads
1.0-010 years ago91 downloads

Dependencies

lua >= 5.1

Dependency for

botway-lua, kong-plugin-apikey-validator, lcqhttp, litcord, lua-colorlog, lua-zabbix-sender, markdown.sile, resilient.sile, SnowplowTracker, stuart, web-driver

Labels

Manifests