Lapis调用的JSON基础就是lua-cjson这个库,这个库同样有一个类似的递归调用 ... sd = cjson.decode(s) sd.key2 = "value2" ngx.say(cjson.encode(sd)).
確定! 回上一頁