Arguments
table
Optional source table a copy dans la new object table. Si omitted ou nil, une empty object table est renvoyee.
Retours
table
New table marked avec Real JSON object marker. Source entries sont copy, sauf 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.
Cree une new table marked as a JSON object pour que Real JSON encoder la traite comme 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))