From c14aae9e3b6aa1cf902eb7f57b47dd222ae7b851 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 24 Oct 2017 11:57:37 +0100 Subject: [PATCH] Fixed json --- 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 3b5a6e18..083a16ae 100644 --- a/locale/ExpGaming-Core/ExpGaming - Lib.lua +++ b/locale/ExpGaming-Core/ExpGaming - Lib.lua @@ -72,9 +72,9 @@ function json_log(table,no_log) local json = '{' for key,value in pairs(table) do if type(value) == 'table' then value = json_log(value,true) end - if type(value) == 'string' then json = json..'"'..key..'"="'..value..'",' end - elseif type(value) == 'number' then json = json..'"'..key..'"='..value..',' - else json = json..'"'..key..'"=null,' end + if type(value) == 'string' then json = json..'"'..key..'":"'..value..'",' end + elseif type(value) == 'number' then json = json..'"'..key..'":'..value..',' + else json = json..'"'..key..'":null,' end end if no_log then return json:sub(-1)..'}' else game.write_file('multi.log',json:sub(-1)..'}\n', true, 0) end