Skip to content

Commit

Permalink
Fixed|libcore|JSON: Error when parsing whitespace in JSON
Browse files Browse the repository at this point in the history
A quoted string token as the final value in an object would cause
whitespace to be mistaken as the closing character.

IssueID #1937
  • Loading branch information
skyjake committed Jan 6, 2015
1 parent b0b6b09 commit 809f15f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/libcore/src/data/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ class JSONParser
// Add to the result.
result.insert(name, value);
// Move forward.
c = next();
skipWhite();
c = next();
if(c == '}')
{
// End of object.
Expand Down

0 comments on commit 809f15f

Please sign in to comment.