JSON-RPC From Wikipedia, the free encyclopedia Jump to navigationJump to search JSON-RPC is a remote procedure call protocol encoded in JSON. It is similar to the XML-RPC protocol, defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered asynchronously. Version Description Dated 1.0
打印表 function PrintTable(table, key, level) level = level or 1 local indent = "" for i = 1, level do indent = indent.." " end if key ~= nil then print(indent..key.." ".."=".." ".."{") else print(indent .. "{") end for k,v in pairs(table) do if type(v) == "table" then PrintTable(v, key, level + 1) else local content = string.format("%s%s = %s", indent .. " ",tostring(k), tostring(v)) print(content) end end