Small edit

This commit is contained in:
Cooldude2606
2017-10-24 13:22:07 +01:00
parent 466d640c5b
commit 57f12259b4

View File

@@ -73,8 +73,8 @@ function json_log(lua_table,no_log)
for key,value in ipairs(lua_table) do
done[key] = true
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..'"')
elseif type(value) == 'number' then table.insert(result,key..':'..value)
if type(value) == 'string' then json = table.insert(result,'"'..value..'"')
elseif type(value) == 'number' then table.insert(result,value)
else table.insert(result,key..':null') end
end
for key,value in pairs(lua_table) do