From c05803bf9683f3e8dff76bf85d6030ec00823564 Mon Sep 17 00:00:00 2001 From: garretmcgraw Date: Wed, 9 Nov 2016 17:38:48 -0500 Subject: [PATCH] Making flatbuffers JSON parsing deal with unexpected null values when unknown JSON is allowed. (#4083) --- src/idl_parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index f69ae4c07..0dc739240 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -1758,6 +1758,9 @@ CheckedError Parser::SkipAnyJsonValue() { case kTokenFloatConstant: EXPECT(kTokenFloatConstant); break; + case kTokenNull: + EXPECT(kTokenNull); + break; default: return Error(std::string("Unexpected token:") + std::string(1, static_cast(token_))); }