mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 06:08:40 +00:00
Making flatbuffers JSON parsing deal with unexpected null values when unknown JSON is allowed. (#4083)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
d298adc4e6
commit
c05803bf96
@@ -1758,6 +1758,9 @@ CheckedError Parser::SkipAnyJsonValue() {
|
|||||||
case kTokenFloatConstant:
|
case kTokenFloatConstant:
|
||||||
EXPECT(kTokenFloatConstant);
|
EXPECT(kTokenFloatConstant);
|
||||||
break;
|
break;
|
||||||
|
case kTokenNull:
|
||||||
|
EXPECT(kTokenNull);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return Error(std::string("Unexpected token:") + std::string(1, static_cast<char>(token_)));
|
return Error(std::string("Unexpected token:") + std::string(1, static_cast<char>(token_)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user