Skip to content

Commit c58e93b

Browse files
committed
fix failing object case
1 parent eed193e commit c58e93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_reader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,7 @@ bool OurReader::readValue() {
11601160
}
11611161
break;
11621162
case tokenArraySeparator:
1163+
case tokenObjectEnd:
11631164
if (features_.allowDroppedNullPlaceholders_) {
11641165
// "Un-read" the current token and mark the current value as a null
11651166
// token.
@@ -1169,8 +1170,7 @@ bool OurReader::readValue() {
11691170
currentValue().setOffsetStart(current_ - begin_ - 1);
11701171
currentValue().setOffsetLimit(current_ - begin_);
11711172
break;
1172-
}
1173-
// Else, fall through...
1173+
} // else, fall through ...
11741174
default:
11751175
currentValue().setOffsetStart(token.start_ - begin_);
11761176
currentValue().setOffsetLimit(token.end_ - begin_);

0 commit comments

Comments
 (0)