Changeset

4147:7f119ebcf55f

util.json: Fixed a parse error caused by unexpected whitespace.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 19 Feb 2011 06:47:32 +0500
parents 4143:eccd3c87d717
children 4148:65f22ed19b9e 4169:1033729a2467
files util/json.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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