util.json: Fixed a parse error caused by unexpected whitespace.
authorWaqas Hussain <waqas20@gmail.com>
Sat, 19 Feb 2011 06:47:32 +0500
changeset 4147 7f119ebcf55f
parent 4143 eccd3c87d717
child 4148 65f22ed19b9e
child 4169 1033729a2467
util.json: Fixed a parse error caused by unexpected whitespace.
util/json.lua
--- a/util/json.lua	Sun Feb 13 22:57:17 2011 +0000
+++ b/util/json.lua	Sat Feb 19 06:47:32 2011 +0500
@@ -268,7 +268,9 @@
 		return tonumber(s);
 	end
 	local function readmember(t)
+		skipstuff();
 		local k = readstring();
+		skipstuff();
 		checkandskip(":");
 		t[k] = readvalue();
 	end