From 834e94bbdc0601215d5b9c35652c6b7cf8666b5c Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 2 Aug 2022 15:12:34 +0200 Subject: Utils: Drop ill-formed audit checks for truncating JSON --- src/utils/cpp/json.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/utils/cpp/json.hpp') diff --git a/src/utils/cpp/json.hpp b/src/utils/cpp/json.hpp index 984208df..e699c292 100644 --- a/src/utils/cpp/json.hpp +++ b/src/utils/cpp/json.hpp @@ -163,7 +163,6 @@ namespace detail { << (++i == json.size() ? "" : ","); } oss << '}'; - gsl_EnsuresAudit(nlohmann::json::parse(oss.str()) == json); return oss.str(); } if (json.is_array()) { @@ -175,7 +174,6 @@ namespace detail { << (++i == json.size() ? "" : ","); } oss << ']'; - gsl_EnsuresAudit(nlohmann::json::parse(oss.str()) == json); return oss.str(); } return json.dump(); -- cgit v1.2.3