lua-resty-inspect
Human-readable representation of Lua tables
$ opm get xiangnanscu/lua-resty-inspect
lua-resty-inspect
Human-readable representation of Lua tables. This is a fork of http://github.com/kikito/inspect.lua. Add features:
when passing
json = true
to options, output will be formatted jsonskip metatable rendering by default
Synopsis
local inspect = require("resty.inspect")
local t = setmetatable({a=1,b={c=2}}, {"will be skipped"})
assert(inspect(t, {json=true})==[[{
"a" : 1,
"b" : {
"c" : 2
}
}]])
Authors
Nan Xiang(@xiangnanscu)
License
mit
Versions
-
Human-readable representation of Lua tables 2024-02-19 02:41:48
-
Human-readable representation of Lua tables 2022-03-14 15:12:16