Skip to content

Commit c31051c

Browse files
committed
Bugfix: endDocument() was never called if the json root is an object. Now endDocument() its fired when expected
1 parent c12957f commit c31051c

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
@@ -279,7 +279,7 @@ void JsonStreamingParser::endObject() {
279279
}
280280
myListener->endObject();
281281
state = STATE_AFTER_VALUE;
282-
if (stackPos == -1) {
282+
if (stackPos == 0) {
283283
endDocument();
284284
}
285285
}

0 commit comments

Comments
 (0)