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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]