doujiang24 最简单粗暴的报告,你可以用 json encode,这个比较通用 require "cjson".encode. 如果是你示例这里的话,可以用 ngx.encode_args https://github.com/openresty/lua-nginx-module/#ngxencode_args
whuizzzzzz mohamaiti 你这个本身就是json的数据,使用require "cjson".encode 之后在日志里输出就行了。 类似这样 local encode = require "cjson" .encode ngx.log(ngx,ALERT, encode(args))