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, 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.

Versions

1.2.3-14 years ago419,504 downloads
1.2.2-16 years ago19,865 downloads
1.2.1-16 years ago53 downloads
1.2-08 years ago20,151 downloads
1.1-010 years ago(revision: 2)8,917 downloads
1.0-010 years ago90 downloads

Dependencies

lua >= 5.1

Dependency for

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

Labels

Manifests