MaheshMadushan commented on code in PR #1875:
URL: https://github.com/apache/kvrocks/pull/1875#discussion_r1382404221


##########
src/types/json.h:
##########
@@ -211,6 +211,17 @@ struct JsonValue {
     return types;
   }
 
+  Status Toggle(std::string_view path) {
+    try {
+      jsoncons::jsonpath::json_replace(value, path, [&](const std::string & 
/*path*/, jsoncons::json &val) {
+        if (val.is_bool()) val = !val.as_bool();

Review Comment:
   Thanks for poiniting out. will fix this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to