mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-11 23:54:52 +09:00
error?
This commit is contained in:
1 parent
cd5abeb0c2
commit
be5498721f
1 file changed
+2
-2
@@ -72,8 +72,8 @@ function json_log(lua_table,no_log)
|
||||
local result, done, only_indexs = {}, {}, true
|
||||
for key,value in ipairs(lua_table) do
|
||||
done[key] = true
|
||||
if type(value) == 'table' then value = table.insert(result,json_log(value,true))
|
||||
elseif type(value) == 'string' then json = table.insert(result,'"'..value..'"')
|
||||
if type(value) == 'table' then table.insert(result,json_log(value,true))
|
||||
elseif type(value) == 'string' then table.insert(result,'"'..value..'"')
|
||||
elseif type(value) == 'number' then table.insert(result,value)
|
||||
else table.insert(result,key..':null') end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user