commit | c05803bf9683f3e8dff76bf85d6030ec00823564 | [log] [tgz] |
---|---|---|
author | garretmcgraw <garret.mcgraw@videon-central.com> | Wed Nov 09 17:38:48 2016 -0500 |
committer | Wouter van Oortmerssen <wvo@google.com> | Wed Nov 09 14:38:48 2016 -0800 |
tree | ee12bca637ebcfdf6123349aeebfe44bdf5c6408 | |
parent | d298adc4e6f840191d556dddccaa76868bbca3c3 [diff] |
Making flatbuffers JSON parsing deal with unexpected null values when unknown JSON is allowed. (#4083)
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index f69ae4c..0dc7392 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp
@@ -1758,6 +1758,9 @@ case kTokenFloatConstant: EXPECT(kTokenFloatConstant); break; + case kTokenNull: + EXPECT(kTokenNull); + break; default: return Error(std::string("Unexpected token:") + std::string(1, static_cast<char>(token_))); }