From 58b0f9ef2774db5a2db0b27851a4ea2567bffb31 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 24 Oct 2017 13:29:27 +0100 Subject: [PATCH] -_- --- locale/ExpGaming-Core/ExpGaming - Lib.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Lib.lua b/locale/ExpGaming-Core/ExpGaming - Lib.lua index 8a6515fb..8667c495 100644 --- a/locale/ExpGaming-Core/ExpGaming - Lib.lua +++ b/locale/ExpGaming-Core/ExpGaming - Lib.lua @@ -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