zhanhengLu commented on issue #8111:
URL: https://github.com/apache/apisix/issues/8111#issuecomment-1284986009

   
   我看到那个帖子了,说是因为cjson.decode_array_with_array_mt 
属性值为FALSE,我翻了下源代码,apisix/core/json.lua,中定义了cjson的属性,如下
   `local cjson = require("cjson.safe")
   local json_encode = cjson.encode
   local clear_tab = require("table.clear")
   local ngx = ngx
   local tostring = tostring
   local type = type
   local pairs = pairs
   local cached_tab = {}
   
   cjson.decode_array_with_array_mt(true)`
   我应该怎么做,能够让apisix接收到空的数组不会改变为空对象?
   
   还有一点我比较好奇,同样的参数,直接调用apisix admin-api会产生这个问题,但是使用apisix-dashboard却没有


-- 
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