diff options
author | Bo Yang <teboring@google.com> | 2018-06-24 01:10:19 +0000 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2018-06-27 03:19:37 +0000 |
commit | 72e66e2b556e1725a4a4fc87dc423a610ae1f1cc (patch) | |
tree | b9530ccfea27f035b516df7ef89bb3df85471ece /tests | |
parent | fa99d854f668c6fd453c474a95772dc856f2dd33 (diff) |
Enable ignore unknown field in json parsing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/json/test_json.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/json/test_json.cc b/tests/json/test_json.cc index b7548fe..bcdbf64 100644 --- a/tests/json/test_json.cc +++ b/tests/json/test_json.cc @@ -176,7 +176,8 @@ void test_json_roundtrip_message(const char* json_src, upb::json::Printer* printer = upb::json::Printer::Create( env.env(), serialize_handlers, data_sink.Sink()); upb::json::Parser* parser = - upb::json::Parser::Create(env.env(), parser_method, printer->input()); + upb::json::Parser::Create( + env.env(), parser_method, printer->input(), false); env.ResetBytesSink(parser->input()); env.Reset(json_src, strlen(json_src), false, false); |