JSON
json.keys
返回 table 的 visible keys,放入 new table marked as a JSON array。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
返回 table 的 visible keys,放入 new table marked as a JSON array。
json.keys(object: table): table
local record = {
name = "Real",
enabled = true,
[5] = "numeric key",
}
for _, key in ipairs(json.keys(record)) do
print(key)
end