You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/24 14:46:42 UTC

[GitHub] [apisix] bisakhmondal commented on a change in pull request #6151: fix(limit-count): keep the counter if the plugin conf is the same

bisakhmondal commented on a change in pull request #6151:
URL: https://github.com/apache/apisix/pull/6151#discussion_r790812733



##########
File path: apisix/core/json.lua
##########
@@ -26,6 +26,10 @@ local cached_tab = {}
 local _M = {
     version = 0.1,
     decode = require("cjson.safe").decode,
+    -- This method produces the same encoded string when the input is not changed.
+    -- Different calls with cjson.encode will produce different string because
+    -- it doesn't maintain the object key order.
+    stably_encode = require("dkjson").encode

Review comment:
       Much needed feature : )




-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org