From: Waqas Hussain Date: Sat, 19 Feb 2011 01:47:32 +0000 (+0500) Subject: util.json: Fixed a parse error caused by unexpected whitespace. X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=c6ba514283042545c66e20f12e844c1372a54d4c;p=prosody.git util.json: Fixed a parse error caused by unexpected whitespace. --- diff --git a/util/json.lua b/util/json.lua index 40939bb4..05453703 100644 --- a/util/json.lua +++ b/util/json.lua @@ -268,7 +268,9 @@ function json.decode(json) return tonumber(s); end local function readmember(t) + skipstuff(); local k = readstring(); + skipstuff(); checkandskip(":"); t[k] = readvalue(); end