mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-17 03:03:21 +02:00
pop the root node after readValue()
This commit is contained in:
@@ -1048,6 +1048,7 @@ bool OurReader::parse(const char* beginDoc,
|
|||||||
nodes_.push(&root);
|
nodes_.push(&root);
|
||||||
|
|
||||||
bool successful = readValue();
|
bool successful = readValue();
|
||||||
|
nodes_.pop();
|
||||||
Token token;
|
Token token;
|
||||||
skipCommentTokens(token);
|
skipCommentTokens(token);
|
||||||
if (features_.failIfExtra_) {
|
if (features_.failIfExtra_) {
|
||||||
|
Reference in New Issue
Block a user