dkjson下载
local dkjson = require "dkjson" local data = {} data.name= "test" data.array = {} print(dkjson.encode(data))
输出:
{"name":"test","array":[]}