Hello list,
I am pleased to announce lua-xjson 0.9.0 beta, an MIT-licensed JSON encoder and decoder for Lua 5.4 and 5.5 targeting 64-bit Linux.
lua-xjson was created for fast JSON processing with fine-grained, per-request control. Encoded output can be returned as a string or written directly to a file. UTF-8 can be validated during both encoding and decoding. Input property order can be retained during decoding; during encoding, properties can be selected and ordered explicitly or sorted by raw bytes into a canonical property order for deterministic output. Finally, the library can optionally accept common extensions to JSON, including a UTF-8 byte-order mark, comments, trailing commas, and non-finite numeric literals.
The page also describes the principal implementation techniques used to improve performance and credits the work from which some of them were adapted. To the best of my knowledge, lua-xjson 0.9.0 achieves state-of-the-art performance across a majority of the benchmark workloads tested.
All feedback is welcome.
Cheers, André