Skip to content

Commit

Permalink
- benchmark: enable rapidjson utf-8 validation as it's disabled by de…
Browse files Browse the repository at this point in the history
…fault
  • Loading branch information
oknenavin committed Jul 15, 2024
1 parent 4392b24 commit ec4e412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/json/json.node-time.rapidjson.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace test { namespace kind {
std::vector<std::unique_ptr<rapidjson::Document>> vo;
t.time.read.push_back(CXON_MEASURE(
vo.emplace_back(std::unique_ptr<rapidjson::Document>(new rapidjson::Document));
rapidjson::ParseResult const r = vo.back()->Parse(json.c_str());
rapidjson::ParseResult const r = vo.back()->Parse<rapidjson::kParseValidateEncodingFlag>(json.c_str());
if (!r) t.error = std::string("RapidJSON error: ") + rapidjson::GetParseError_En(r.Code());
));
// write
Expand Down

0 comments on commit ec4e412

Please sign in to comment.