mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 15:54:52 +09:00
-_-
This commit is contained in:
1 parent
57f12259b4
commit
58b0f9ef27
1 file changed
+3
-3
@@ -80,9 +80,9 @@ function json_log(lua_table,no_log)
|
||||
for key,value in pairs(lua_table) do
|
||||
if not done[key] then
|
||||
only_indexs = false
|
||||
if type(value) == 'table' then table.insert(result,json_log(value,true)) end
|
||||
if type(value) == 'string' then table.insert(result,key..':"'..value..'"')
|
||||
elseif type(value) == 'number' then table.insert(result,key..':'..value)
|
||||
if type(value) == 'table' then table.insert(result,'"'..key..'":'..json_log(value,true)) end
|
||||
if type(value) == 'string' then table.insert(result,'"'..key..'":"'..value..'"')
|
||||
elseif type(value) == 'number' then table.insert(result,'"'..key..'":'..value)
|
||||
else table.insert(result,key..':null') end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user