From c58e93b014d0cf5fa251552a647e4308618db404 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Thu, 19 Feb 2015 11:23:36 -0600 Subject: [PATCH] fix failing object case --- src/lib_json/json_reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 2e78ff0..d2ae914 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -1160,6 +1160,7 @@ bool OurReader::readValue() { } break; case tokenArraySeparator: + case tokenObjectEnd: if (features_.allowDroppedNullPlaceholders_) { // "Un-read" the current token and mark the current value as a null // token. @@ -1169,8 +1170,7 @@ bool OurReader::readValue() { currentValue().setOffsetStart(current_ - begin_ - 1); currentValue().setOffsetLimit(current_ - begin_); break; - } - // Else, fall through... + } // else, fall through ... default: currentValue().setOffsetStart(token.start_ - begin_); currentValue().setOffsetLimit(token.end_ - begin_);