mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
util.json: Fixed a parse error caused by unexpected whitespace.
This commit is contained in:
parent
404c107e3f
commit
b40e6b9dd9
1 changed files with 2 additions and 0 deletions
|
@ -268,7 +268,9 @@ function json.decode(json)
|
||||||
return tonumber(s);
|
return tonumber(s);
|
||||||
end
|
end
|
||||||
local function readmember(t)
|
local function readmember(t)
|
||||||
|
skipstuff();
|
||||||
local k = readstring();
|
local k = readstring();
|
||||||
|
skipstuff();
|
||||||
checkandskip(":");
|
checkandskip(":");
|
||||||
t[k] = readvalue();
|
t[k] = readvalue();
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue