Argumen
table
Optional source table untuk di-copy ke new object table. Jika omitted atau nil, empty object table dikembalikan.
Return
table
New table marked dengan Real JSON object marker. Source entries di-copy, kecuali Real JSON type marker.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Membuat new table marked as a JSON object agar Real JSON encoder memperlakukannya sebagai 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))