mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-18 11:35:34 +02:00
pop the root node after readValue()
This commit is contained in:
parent
3c32dca892
commit
60ba071aac
@ -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_) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user