mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Small edit
This commit is contained in:
@@ -73,8 +73,8 @@ function json_log(lua_table,no_log)
|
|||||||
for key,value in ipairs(lua_table) do
|
for key,value in ipairs(lua_table) do
|
||||||
done[key] = true
|
done[key] = true
|
||||||
if type(value) == 'table' then value = table.insert(result,json_log(value,true)) end
|
if type(value) == 'table' then value = table.insert(result,json_log(value,true)) end
|
||||||
if type(value) == 'string' then json = table.insert(result,key..':""'..value..'"')
|
if type(value) == 'string' then json = table.insert(result,'"'..value..'"')
|
||||||
elseif type(value) == 'number' then table.insert(result,key..':'..value)
|
elseif type(value) == 'number' then table.insert(result,value)
|
||||||
else table.insert(result,key..':null') end
|
else table.insert(result,key..':null') end
|
||||||
end
|
end
|
||||||
for key,value in pairs(lua_table) do
|
for key,value in pairs(lua_table) do
|
||||||
|
|||||||
Reference in New Issue
Block a user