util.json: Fixed a parse error caused by unexpected whitespace.
authorWaqas Hussain <waqas20@gmail.com>
Sat, 19 Feb 2011 01:47:32 +0000 (06:47 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sat, 19 Feb 2011 01:47:32 +0000 (06:47 +0500)
util/json.lua

index 40939bb4626f80366c8d037f1f78cff5fa1992d7..05453703369e35f642b11acd61c33f93c5e2a97e 100644 (file)
@@ -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