There was an error while loading. Please reload this page.
1 parent 6a0aba4 commit 5284500Copy full SHA for 5284500
1 file changed
t/core/json.t
@@ -122,12 +122,15 @@ qr/\{"b":\{"a":\{"b":"table: 0x[\w]+"\}\}\}/
122
local core = require("apisix.core")
123
local data = core.json.decode('{"arr":[]}')
124
ngx.say(core.json.encode(data))
125
+ local data = { arr = setmetatable({}, core.json.array_mt)}
126
+ ngx.say(core.json.encode(data))
127
local data = core.json.decode('{"obj":{}}')
128
129
}
130
131
--- response_body
132
{"arr":[]}
133
+{"arr":[]}
134
{"obj":{}}
135
136
0 commit comments