mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Fix #3775: Skip unknown field names if they're quoted
This commit is contained in:
@@ -830,10 +830,13 @@ void UnknownFieldsTest() {
|
||||
TEST_EQ(parser.Parse("table T { str:string; i:int;}"
|
||||
"root_type T;"
|
||||
"{ str:\"test\","
|
||||
"unknown_string:\"test\","
|
||||
"\"unknown_string\":\"test\","
|
||||
"unknown_int:10,"
|
||||
"unknown_float:1.0,"
|
||||
"unknown_array: [ 1, 2, 3, 4],"
|
||||
"unknown_object: { i: 10 },"
|
||||
"\"unknown_object\": { \"i\": 10 },"
|
||||
"i:10}"), true);
|
||||
|
||||
std::string jsongen;
|
||||
|
||||
Reference in New Issue
Block a user