From 7b3683ccd13a274bab82e3652a1629d4a6d82b19 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Thu, 19 Feb 2015 11:37:17 -0600 Subject: [PATCH] apply fix to old Reader --- src/lib_json/json_reader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index d86ac88..8bbaeab 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -200,6 +200,8 @@ bool Reader::readValue() { } break; case tokenArraySeparator: + case tokenObjectEnd: + case tokenArrayEnd: if (features_.allowDroppedNullPlaceholders_) { // "Un-read" the current token and mark the current value as a null // token. @@ -209,8 +211,7 @@ bool Reader::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_);