From 72e66e2b556e1725a4a4fc87dc423a610ae1f1cc Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Sun, 24 Jun 2018 01:10:19 +0000 Subject: Enable ignore unknown field in json parsing --- tests/json/test_json.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/json/test_json.cc') 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); -- cgit v1.2.3