1. luajson
GitHub - mpx/lua-cjson: Lua CJSON is a fast JSON encoding/parsing module for Lua
clone 源码
cd lua-cjson-2.1.0
make
make install
打开lua
print(require "cjson")
Lua:开源库 lua-cjson 安装及使用_test1280的博客-CSDN博客_cjson lua
2. yy-json
GitHub - ibireme/yyjson: The fastest C JSON library
GitHub - mah0x211/lua-yyjson: lua bindings for https://github.com/ibireme/yyjson
luarocks install yyjson
print(require 'yyjson')