Skip to content

Commit 531870a

Browse files
authored
Merge pull request #5 from maxpowel/master
Bugfix: endDocument() called when root object ends
2 parents 9084dc9 + c31051c commit 531870a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JsonStreamingParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void JsonStreamingParser::endObject() {
283283
}
284284
myListener->endObject();
285285
state = STATE_AFTER_VALUE;
286-
if (stackPos == -1) {
286+
if (stackPos == 0) {
287287
endDocument();
288288
}
289289
}

0 commit comments

Comments
 (0)