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, and LuaJIT.
It is written only in pure Lua and has no dependencies. Even though, since it is carefully optimized, decoding speed even matches to other lpeg-based JSON modules.
The parser and decoder reject inputs not conforms the JSON specification (ECMA-404), and the encoder always yields outputs conforming the specification.
The parser and decoder also handle surrogate pair correctly.


1.2.2-1231 days ago2,732 downloads
1.2.1-1231 days ago9 downloads
1.2-01 year ago17,076 downloads
1.1-03 years ago8,855 downloads
1.0-04 years ago49 downloads


lua >= 5.1

Dependency for

litcord, stuart, web-driver