From 60ba071aace3d512131149f10f1fbf7ec284eb7a Mon Sep 17 00:00:00 2001 From: lilinchao Date: Tue, 2 Jul 2019 20:28:30 +0800 Subject: [PATCH] pop the root node after readValue() --- src/lib_json/json_reader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 53b0b2e..005ab26 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -1048,6 +1048,7 @@ bool OurReader::parse(const char* beginDoc, nodes_.push(&root); bool successful = readValue(); + nodes_.pop(); Token token; skipCommentTokens(token); if (features_.failIfExtra_) {