JSON
json.object
Real JSON encoder が object として扱う new table marked as a JSON object を作成します。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Real JSON encoder が object として扱う new table marked as a JSON object を作成します。
json.object(source?: table): table
local profile = json.object({
name = "Guest",
active = true,
})
local empty = json.object()
print(json.encode(profile))
print(json.encode(empty))